Ejemplo n.º 1
0
        public PartialViewResult GetBidsList(int lotId)
        {
            IEnumerable <BidViewModel> bids  = _bidService.GetAllBidEntitiesByLotId(lotId).Select(b => b.ToMvcBid()).OrderByDescending(b => b.Price);
            BidListViewModel           model = new BidListViewModel {
                Bids = bids, LotId = lotId, Price = _lotService.GetLotEntity(lotId).ToMvcLot().CurrentPrice + 1
            };

            return(PartialView(model));
        }