public async Task <Transaction> Create(Transaction transaction) { await _context.Transactions.AddAsync(transaction); await _context.SaveChangesAsync(); return(transaction); }
public async Task <Account> Create(Account account) { await _context.Accounts.AddAsync(account); await _context.SaveChangesAsync(); return(account); }
public async Task <User> Create(User user) { await _context.Users.AddAsync(user); await _context.SaveChangesAsync(); return(user); }