Пример #1
0
 public ActionResult AddRole(RoleModel model)
 {
     try
     {
         model.CreateUser = CurrentUser.Id;
         bool success = business.AddRole(model);
         return(Json(new JsonMessage(success)));
     }
     catch
     {
         return(Json(new JsonMessage(false)));
     }
 }