Пример #1
0
 public IHttpActionResult EditRole(SystemRole role)
 {
     if (role == null)
     {
         return(BadRequest("The role object must be passed in the request body"));
     }
     try
     {
         _rolesService.EditRole(role);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }