Пример #1
0
 public bool ActiveInactiveUser(int UserId)
 {
     try
     {
         return(UserService.ActiveInactiveUser(UserId));
     }
     catch (Exception)
     {
         throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)
         {
             Content      = new StringContent("An error occurred, please try again or contact the administrator."),
             ReasonPhrase = "Critical Exception"
         });
     }
 }