public ActionResult ChangePassword(ChangePasswordViewModel model) { decimal?USER_NO = Session["sess_USER_NO"] as decimal?; decimal?LOGON_NO = Session["sess_LOGON_NO"] as decimal?; SEC_USERS_LOGIN_Result1 user = Session["sess_sec_users"] as SEC_USERS_LOGIN_Result1; if (user.USER_NO > 0 && model.OLD_PASS == user.USER_PWD && model.NEW_PASS == model.RE_NEW_PASS) { /* * db.SEC_USERS_UPDATE(user.USER_MOBILE, user.USER_ADDR, user.USER_EMAIL, user.USER_NAME, * model.NEW_PASS, user.USER_PARENT_NO, user.IS_ACTIVE, user.ACTIVE_FROM, user.ACTIVE_TO, * user.USER_NO, USER_NO, LOGON_NO, user.USER_TYPE_NO, user.DEPT_NO, user.DESIG_NO, * user.HR_EMP_ID, user.USER_FULL_NAME, user.USER_NICK_NAME, user.USER_CONTACT, * user.COMP_NO, user.THANA_NO); */ db.SEC_USERS_CHANGE_PASSWORD(user.USER_NO, model.NEW_PASS, USER_NO, LOGON_NO); } return(View()); }