Ejemplo n.º 1
0
 public ActionResult SetUserRole(long id, string role)
 {
     try
     {
         dataHelper.ChangeUserRole(id, role);
         return(RedirectToAction("Users"));
     }
     catch (Exception ex)
     {
         logger.ErrorMessage("305", ex);
         return(View("Error", new Error()
         {
             ExDescription = ex.Message
         }));
     }
 }