Example #1
0
 public ActionResult DeleteConfirmed(Guid id)
 {
     try
     {
         AccountServices.DeleteRole(id);
     }
     catch (OperationCanceledException ex)
     {
         ModelState.AddModelError("", ex.Message);
         return(View(AccountServices.FindRoleByIdentity(id)));
     }
     return(RedirectToAction("Index"));
 }