public async Task <bool> Add(BankAccount bankAccount)
 {
     bankAccount.DateCreated = DateTime.UtcNow;
     _dbContext.BankAccounts.Add(bankAccount);
     return(await _dbContext.SaveChangesAsync() > 0);
 }
Example #2
0
 public async Task <bool> Add(Transaction transaction)
 {
     transaction.DateCreated = DateTime.UtcNow;
     _dbContext.Transactions.Add(transaction);
     return(await _dbContext.SaveChangesAsync() > 0);
 }