public void UpdateAccount(Customer account)
 {
     _accountRepository.UpdateAccount(account);
 }
 public void UpdateAccount(Customer account)
 {
     _db.Entry(account).State = EntityState.Modified;
     _db.SaveChanges();
 }
 public void CreateAccount(Customer account)
 {
     account.DateRegistered = DateTime.Now;
     _accountRepository.CreateAccount(account);
 }
 public void CreateAccount(Customer account)
 {
     _db.Customers.Add(account);
     _db.SaveChanges();
 }