Пример #1
0
 public IHttpActionResult UnlockUser(Guid code)
 {
     try
     {
         return(Ok(accountApp.UnlockUser(code, base.AccountCode)));
     }
     catch (ArgumentException ex)
     {
         return(BadRequest(ex));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }