public void UpdateAccount(Account acc, string oldNum) { if (acc.AccountNum == "" || inter.CheckIfExist(acc.AccountNum)) { throw new Exception("The Account Number Isn't Available"); } fillEmptyFileds(inter.FindAcc(oldNum), acc); inter.UpdateAcc(acc, oldNum); }
public void UpdateAccount(Account acc, string oldAcc) { try { AccountC inter = new AccountC(); inter.UpdateAcc(acc, oldAcc); } catch (Exception e) { throw e; } }