public async Task <Guid> Create() { var account = new Models.Account { AccountId = Guid.NewGuid(), DateAdded = DateTime.UtcNow }; _unitOfWork.AccountRepository.Register(account); await _unitOfWork.CommitAsync(); return(account.AccountId); }
public async Task Update(Models.Account account) { _unitOfWork.AccountRepository.Update(account); await _unitOfWork.CommitAsync(); }