public ActionResult List(bool?pinned, int?docType, RecentDocDatePeriod period, string orderBy, string orderDir) { int curProductId = 1; if (Session["SelectedProductId"] != null) { curProductId = int.Parse(Session["SelectedProductId"].ToString()); } RecentDocuments rd = Doc.GetRecentDocs(this.UserData.UserId, Language.Id, pinned, docType, period, orderBy, orderDir, curProductId); return(PartialView(rd)); }
public RecentDocFilters() { Pinned = null; DocType = null; Period = RecentDocDatePeriod.All; }