public static bool ChangePassword(string userName, string password, UserAccountTypes userType) { IUserAccountDAL userAccountDB; switch (userType) { case UserAccountTypes.Customer: userAccountDB = new CustomerUserAccountDAL(_connectionString); break; case UserAccountTypes.Employee: userAccountDB = new EmployeeUserAccountDAL(_connectionString); break; default: return(false); } return(userAccountDB.ChangePassword(userName, password)); }
public static bool Change_Pass(string email, string pass) { IUserAccountDAL UserAccountDB = new EmployeeUserAccountDAL(connectionString); return(UserAccountDB.ChangePassword(email, pass)); }