Exemplo n.º 1
0
        public ActionResult AddUserAsAdmin(string email)
        {
            var mediator = new AccountMediator();
            mediator.AddUserAsAdmin(email);

            return RedirectToAction("ListUsers", new {message = email+" added"});
        }
Exemplo n.º 2
0
        public ActionResult RemoveUser(string email)
        {
            var mediator = new AccountMediator();
            mediator.RemoveUser(email);

            return RedirectToAction("ListUsers", new {message = email+" deleted"});
        }
Exemplo n.º 3
0
        public ActionResult ListUsers(string message = null)
        {
            ViewBag.Message = message;

            var mediator = new AccountMediator();

            return View(mediator.ListUsers());
        }