//GetProductsListForTag
 public IEnumerable<AuctionShort> GetProductsListForTag(long eventID, bool isPast, TagFilterParams filter)
 {
     int? totalrecords;
     var pageindex = (filter.page > 0) ? filter.page - 1 : 0;
     var ash = GetProductsForTag(eventID, filter.ID, isPast, (int) filter.Sortby - 1, (byte) filter.Orderby == 2,
         pageindex, filter.PageSize, out totalrecords);
     return new PagedList<AuctionShort>(ash, pageindex, filter.PageSize,
         totalrecords.HasValue ? totalrecords.Value : 0);
 }
        //GetProductsListForTag
        public IEnumerable <AuctionShort> GetProductsListForTag(long eventID, bool isPast, TagFilterParams filter)
        {
            int?totalrecords;
            var pageindex = (filter.page > 0) ? filter.page - 1 : 0;
            var ash       = GetProductsForTag(eventID, filter.ID, isPast, (int)filter.Sortby - 1, (byte)filter.Orderby == 2,
                                              pageindex, filter.PageSize, out totalrecords);

            return(new PagedList <AuctionShort>(ash, pageindex, filter.PageSize,
                                                totalrecords.HasValue ? totalrecords.Value : 0));
        }
 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));
 }