Example #1
0
 public IHttpActionResult AddAccount(DTO.Account account)
 {
     try
     {
         base.SetRequestInfo();
         return(Ok(accountApp.Save(account, base.ClientId, base.AccountCode)));
     }
     catch (LockedUpMemberException ex)
     {
         return(BadRequest(new ArgumentException(ex.Message)));
     }
     catch (PasswordException ex)
     {
         return(BadRequest(new ArgumentException(ex.Message)));
     }
     catch (ArgumentException ex)
     {
         return(BadRequest(ex));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }