Example #1
0
        public async Task <Results <bool> > Create(PandaAccount newAccount)
        {
            await _repo.AddAsync(newAccount);

            var result = await _repo.SaveAsync();

            return(result);
        }
Example #2
0
        public async Task <Results <bool> > CreateAccount(PandaAccountCreateContract account)
        {
            var newAccount = new PandaAccount();

            _mapper.Map(account, newAccount);
            var createResult = await _accountRepository.Create(newAccount);

            return(createResult);
        }