Exemple #1
0
        public IHttpActionResult GetTokenSMS(AccountInput param)
        {
            try
            {
                var account = new DTO.AccountInput()
                {
                    Email    = param.email,
                    Document = param.document,
                    UrlBack  = param.url_back
                };

                var token = accountApp.GetTokenSMS(account, base.ClientId);
                return(Ok(token));
            }
            catch (ArgumentException ex)
            {
                return(BadRequest(ex));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }