public ActionResult TagProducts(TagFilterParams param) { SetFilterParams(param); var evnt = param.EventID.HasValue ? EventRepository.GetEventByID(param.EventID.Value) : EventRepository.GetCurrent(); bool isPast = !evnt.IsCurrent && evnt.CloseStep == 2; ViewData["IsPastGrid"] = isPast; ViewData["PageActionPath"] = "Tcategory"; ViewData["IsUserRegisteredForEvent"] = Consts.IsAllUsersCanSeeBids; ViewData["IsShownOpenBidOne"] = Consts.IsShownOpenBidOne; ViewData["PageParams"] = String.Join(",", (new object[] { param.ID, param.EventID, false, (int)param.Sortby - 1, (byte)param.Orderby == 2, (param.page > 0) ? param.page - 1 : 0, param.PageSize })); return(View("pAuctionGrid", AuctionRepository.GetProductsListForTag(evnt.ID, isPast, param))); }
//Tag public ActionResult Tcategory([ModelBinder(typeof(CustomItemBinder))] TagFilterParams param) { var tag = DifferentRepository.GetTag(param.ID); if (tag == null || !tag.IsViewable) { return(RedirectToAction("Index", "Home")); } ViewData["Tag"] = tag; var evnt = param.EventID.HasValue ? EventRepository.GetEventByID(param.EventID.Value) : EventRepository.GetCurrent(); ViewData["Title"] = string.Format("{0} < {1}", tag.Title, evnt.Title); ViewData["Event"] = evnt; SetFilterParams(param); return(View()); }