Esempio n. 1
0
 public void Delete(Account act)
 {
     Account foundAct = Read(act.Number);
     if (foundAct != null)
     {
         db.Remove(foundAct);
     }
 }
Esempio n. 2
0
 private Account BuildAccount()
 {
     Account act = new Account();
     act.Id = 1;
     act.Number = "1234123412341234";
     act.Holder = "The Todd";
     act.Balance = new Decimal(10000000);
     return act;
 }
Esempio n. 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);
     }
 }
Esempio n. 4
0
 public void Create(Account act)
 {
     db.Add(act);
 }
Esempio n. 5
0
 public void Create(Account act)
 {
     dao.Create(act);
 }