Beispiel #1
0
 public ActionResult AdminDeactivate(string id)
 {
     try
     {
         AccountService.ActDeactAccount(id, false);
         return(RedirectToAction("Index", "Admin"));
     }
     catch (Exception ex)
     {
         return(RedirectToAction("Index", "Response", new { Message = ex.Message, Code = 400, Type = "Error" }));
     }
 }