Commit 310341b0 authored by Clint Mourlevat's avatar Clint Mourlevat

Implementing Ask methods

parent 46c8f41f
...@@ -66,6 +66,7 @@ namespace Stratis.Guru.Controllers ...@@ -66,6 +66,7 @@ namespace Stratis.Guru.Controllers
[Route("vanity")] [Route("vanity")]
public IActionResult Vanity(Vanity vanity) public IActionResult Vanity(Vanity vanity)
{ {
_ask.NewVanity(vanity);
ViewBag.Succeed = true; ViewBag.Succeed = true;
return View(); return View();
} }
......
...@@ -5,6 +5,16 @@ namespace Stratis.Guru.Modules ...@@ -5,6 +5,16 @@ namespace Stratis.Guru.Modules
{ {
public class Ask : IAsk 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
using System.Collections.Generic;
using Stratis.Guru.Models;
namespace Stratis.Guru.Modules namespace Stratis.Guru.Modules
{ {
public interface IAsk public interface IAsk
{ {
void NewVanity(Vanity vanity);
Queue<Vanity> GetVanities();
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment