Пример #1
0
        public IHttpActionResult ResetAccountSMS(DTO.AccountInput account)
        {
            try
            {
                base.SetRequestInfo();

                accountApp.ResetAccount(account, base.AccountCode);
                return(Ok());
            }
            catch (LockedUpMemberException)
            {
                return(BadRequest("locked_member"));
            }
            catch (PasswordException ex)
            {
                return(BadRequest(ex.Message));
            }
            catch (ArgumentException ex)
            {
                return(BadRequest(ex.Message));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }