public async Task <Results <bool> > Create(PandaAccount newAccount) { await _repo.AddAsync(newAccount); var result = await _repo.SaveAsync(); return(result); }
public async Task <Results <bool> > CreateAccount(PandaAccountCreateContract account) { var newAccount = new PandaAccount(); _mapper.Map(account, newAccount); var createResult = await _accountRepository.Create(newAccount); return(createResult); }