Exemplo n.º 1
0
 public IHttpActionResult AddSimplifiedAccount(DTO.Account customerSimplified)
 {
     try
     {
         base.SetRequestInfo();
         return(Ok(accountApp.SaveCustomerSimplified(customerSimplified, base.ClientId)));
     }
     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));
     }
 }