Ejemplo n.º 1
0
        public async Task <HttpResponseMessage> AddAccount(AccountRequest accountRequest)
        {
            if (accountRequest == null)
            {
                return(new HttpResponseMessage(HttpStatusCode.BadRequest));
            }

            await _accountsService.AddNewAccount(accountRequest);

            return(new HttpResponseMessage(HttpStatusCode.Created));
        }