public ActionResult PastCategoriesView([ModelBinder(typeof(CustomItemBinder))] CategoryFilterParams param) { //EventCategory evCat = CategoryRepository.GetEventCategoryById(param.Id); EventCategoryDetail ecd = CategoryRepository.GetEventCategoryDetail(param.Id); if (ecd == null) { return(RedirectToAction("PastAuctionResults")); } ViewData["Event"] = EventRepository.GetEventByID(ecd.LinkParams.Event_ID); ViewData["EventCategory"] = ecd; ViewData["Title"] = String.Format("{0} < {1} < {2} - {3}", ecd.LinkParams.CategoryTitle, ecd.LinkParams.MainCategoryTitle, ecd.LinkParams.EventTitle, Consts.CompanyTitleName); SetFilterParams(param); return(View()); }
public ActionResult EventCategory([ModelBinder(typeof(CustomItemBinder))] CategoryFilterParams param) { ViewData["DEMO_MODE"] = true; //EventCategory ec = CategoryRepository.GetEventCategoryById(param.Id); EventCategoryDetail ec = CategoryRepository.GetEventCategoryDetail(param.Id); if (ec == null) { return(RedirectToAction("Index", "Preview")); } ViewData["PageActionPath"] = "EventCategory"; ViewData["CurrentCategory"] = ec; ViewData["CurrentEvent"] = EventRepository.GetEventDetail(ec.Event_ID); SetFilterParams(param); SessionUser cuser = AppHelper.CurrentUser; return(View(AuctionRepository.GetListForEventCategory(param, cuser == null ? -1 : cuser.ID, true))); }
public ActionResult CategoryView([ModelBinder(typeof(CustomItemBinder))] CategoryFilterParams param, string cat) { EventCategoryDetail ecd = CategoryRepository.GetEventCategoryDetail(param.Id); if (ecd == null) { return(RedirectToAction("Category")); } ViewData["ECDetail"] = ecd; ViewData["IsMainCategory"] = String.IsNullOrEmpty(cat); ViewData["MainCategory"] = ecd.LinkParams.MainCategory_ID; if (!String.IsNullOrEmpty(cat)) { ViewData["Title"] = String.Format("{0} < {1} < {2} - {3}", ecd.LinkParams.CategoryTitle, ecd.LinkParams.MainCategoryTitle, ecd.LinkParams.EventTitle, Consts.CompanyTitleName); SetFilterParams(param); } else { ViewData["Title"] = String.Format("{0} < {1} - {2}", ecd.LinkParams.MainCategoryTitle, ecd.LinkParams.EventTitle, Consts.CompanyTitleName); } return(View()); }