Example #1
0
 public void Delete(Account act)
 {
     Account foundAct = Read(act.Number);
     if (foundAct != null)
     {
         db.Remove(foundAct);
     }
 }
 private Account BuildAccount()
 {
     Account act = new Account();
     act.Id = 1;
     act.Number = "1234123412341234";
     act.Holder = "The Todd";
     act.Balance = new Decimal(10000000);
     return act;
 }
Example #3
0
 public void Update(Account act)
 {
     Account foundAct = Read(act.Number);
     if (foundAct != null)
     {
         foundAct.Holder = act.Holder;
         foundAct.Balance = act.Balance;
     }
     else
     {
         db.Add(act);
     }
 }
Example #4
0
 public void Create(Account act)
 {
     db.Add(act);
 }
Example #5
0
 public void Create(Account act)
 {
     dao.Create(act);
 }