Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
310341b0
Commit
310341b0
authored
Oct 18, 2018
by
Clint Mourlevat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementing Ask methods
parent
46c8f41f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
HomeController.cs
Controllers/HomeController.cs
+1
-0
Ask.cs
Modules/Ask.cs
+11
-1
IAsk.cs
Modules/IAsk.cs
+5
-1
No files found.
Controllers/HomeController.cs
View file @
310341b0
...
...
@@ -66,6 +66,7 @@ namespace Stratis.Guru.Controllers
[
Route
(
"vanity"
)]
public
IActionResult
Vanity
(
Vanity
vanity
)
{
_ask
.
NewVanity
(
vanity
);
ViewBag
.
Succeed
=
true
;
return
View
();
}
...
...
Modules/Ask.cs
View file @
310341b0
...
...
@@ -5,6 +5,16 @@ namespace Stratis.Guru.Modules
{
public
class
Ask
:
IAsk
{
public
Queue
<
Vanity
>
VanityAsking
=
new
Queue
<
Vanity
>();
private
Queue
<
Vanity
>
VanityAsking
=
new
Queue
<
Vanity
>();
public
void
NewVanity
(
Vanity
vanity
)
{
VanityAsking
.
Enqueue
(
vanity
);
}
public
Queue
<
Vanity
>
GetVanities
()
{
return
VanityAsking
;
}
}
}
\ No newline at end of file
Modules/IAsk.cs
View file @
310341b0
using
System.Collections.Generic
;
using
Stratis.Guru.Models
;
namespace
Stratis.Guru.Modules
{
public
interface
IAsk
{
void
NewVanity
(
Vanity
vanity
);
Queue
<
Vanity
>
GetVanities
();
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment