public ActionResult LoginApproval(string FormCode, string UserName, string Pwd, string Notes) { Session["Approve_UserId"] = null; Session["Approve_Notes"] = null; var loginApprovalModel = new LoginApprovalModel(); var loginApprovalService = new LoginApprovalService(); if (!loginApprovalService.GetCheckFormApproval(UserName, Pwd, FormCode)) { throw new Exception(string.Format("[VALIDATION] {0}", "LoginApproval fail")); } else { var loginService = new Models.Authentication.Login.LoginService(); var model = loginService.GetLoginInfo(UserName); Session["Approve_UserId"] = model.UserId; Session["Approve_Notes"] = Notes; } return(Content("")); }
public ActionResult Detail(int UserId = 0) { if (Session["userId"] != null) { return(RedirectToAction("Index", "Home")); } LoginApprovalModel loginApprovalModel = new LoginApprovalModel(); return(View(VIEW_DETAIL, loginApprovalModel)); }
/// <summary> /// this is my comments zul /// </summary> /// <returns></returns> public ActionResult PopupLoadOnDemandPartial() { LoginApprovalModel loginApprovalModel = new LoginApprovalModel(); return(PartialView(VIEW_PANEL_PARTIAL, loginApprovalModel)); }