예제 #1
0
        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));
        }
예제 #2
0
        public static bool Change_Pass(string email, string pass)
        {
            IUserAccountDAL UserAccountDB = new EmployeeUserAccountDAL(connectionString);

            return(UserAccountDB.ChangePassword(email, pass));
        }