public async ValueTask <ActionResult <AccountWithLeadOutputModel> > CreateAccount(AccountInputModel account) { if (account.CurrencyId == null) { return(BadRequest("Choose currency")); } DataWrapper <AccountDto> dataWrapper = await _repo.AddOrUpdateAccount(_mapper.Map <AccountDto>(account)); _logger.Info($"Create new account with Id: {dataWrapper.Data.Id}"); return(MakeResponse(dataWrapper, _mapper.Map <AccountWithLeadOutputModel>)); }