public ActionResult popupUserFilterJson(string UserId) { UserSessionFacade fac = new UserSessionFacade(this.CurrentClient.ApplicationDBConnectionString); model = fac.GetUserSessionFilterByUserId(Helper.oUser.UserId); if (model.UserId > 0) { model.OrderByColumn = model.OrderByColumn == null ? "SrcRecordId" : model.OrderByColumn; } else { model = new UserSessionFilterEntity(); model.OrderByColumn = "SrcRecordId"; } TempData.Keep(); return(Json(new { Data = model }, JsonRequestBehavior.AllowGet)); }
public ActionResult popupUserFilter(string UserId) { // Open Session filter popup and set data to Popup UserSessionFacade fac = new UserSessionFacade(this.CurrentClient.ApplicationDBConnectionString); model = fac.GetUserSessionFilterByUserId(Helper.oUser.UserId); if (model.UserId > 0) { model.OrderByColumn = model.OrderByColumn == null ? "SrcRecordId" : model.OrderByColumn; } else { model = new UserSessionFilterEntity(); model.OrderByColumn = "SrcRecordId"; } TempData.Keep(); return(PartialView("_popupUserFilter", model)); }
public ActionResult SaveImportFiler(string ImportProcess, string From) { if (!string.IsNullOrEmpty(ImportProcess)) { ImportProcess = StringCipher.Decrypt(ImportProcess, General.passPhrase); UserSessionFacade fac = new UserSessionFacade(this.CurrentClient.ApplicationDBConnectionString); model = fac.GetUserSessionFilterByUserId(Helper.oUser.UserId); if (model.ImportProcess != ImportProcess) { model.ImportProcess = ImportProcess; fac.InsertOrUpdateUserSessionFilter(model); } } if (From == "MatchData") { return(RedirectToAction("Index", "StewardshipPortal")); } else { return(RedirectToAction("Index", "BadInputData")); } }