public ActionResult _LotLastBidPartial(int id) { var bids = BidModel.GetBidByLotId(id); if (bids.Count >= 5) { List <BidModel> tops = bids.Take(5).ToList(); return(PartialView(tops)); } else { return(PartialView(bids)); } }
public ActionResult Bids(int id) { var bids = BidModel.GetBidByLotId(id); return(View(bids)); }