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;
 }
 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);
     }
 }
 public void Create(Account act)
 {
     db.Add(act);
 }
 public void Create(Account act)
 {
     dao.Create(act);
 }