Exemplo n.º 1
0
 public ActionResult LoginCmd(LoginCommand command)
 {
     if (!Configuration.Context().logged)
     {
         Configuration.Context().logged = true;
     }
     return Redirect("/newshtml/index");
 }
Exemplo n.º 2
0
 public ActionResult LoginCmd(LoginCommand command)
 {
     //Configuration.Instance().Bus.Handle(command);
     //var news = Configuration.Instance().NewsReadModel.News;
     if (Configuration.Context().logged)
     {
         Configuration.Context().logged = false;
     }
     else
     {
         Configuration.Context().logged = true;
     }
     //return View("Index", Configuration.Context());
     return this.Index();
 }