//Adds transfer to database and saves via context
 public void Add(Transfer transfer)
 {
     context.Transfer.Add(transfer);
     context.SaveChanges();
 }
Esempio n. 2
0
 //Adds UserAccount to database and saves via context
 public void Add(UserAccount userAccount)
 {
     context.UserAccount.Add(userAccount);
     context.SaveChanges();
 }
 //Adds deposit to database and saves via context
 public void Add(Deposit deposit)
 {
     context.Deposit.Add(deposit);
     context.SaveChanges();
 }