public async Task <IActionResult> Lots(int page = 1) { List <AuctionLot> lotsToDisplay = await lotLogic.GetPage(page, new AuctionLot { Status = LotStatusProvider.GetAcceptedStatus() }); int lotsCount = await lotLogic.GetCount(new AuctionLot { Status = LotStatusProvider.GetAcceptedStatus() }); return(View(new AuctionLotsViewModel() { PageViewModel = new PageViewModel(lotsCount, page, ApplicationConstantsProvider.GetPageSize()), AuctionLots = lotsToDisplay })); }