public ActionResult Register(string email, string domain) { IMessage message = new CommonMessage { MessageBody = email, Domain = domain }; MessageQueue msgQueue = new MessageQueue(); msgQueue.Enqueue(message); ViewBag.Message = "Register succeed!"; return View(); }
public ActionResult UnRegister(string email, string domain) { if (email == null) { ViewBag.Unregister = false; } else { ViewBag.Unregister = true; IMessage message = new CommonMessage { MessageBody = email, Domain = domain }; MessageQueue msgQueue = new MessageQueue(); msgQueue.Dequeue(message); } return View(); }