Ejemplo n.º 1
0
 public AuctionListContext(SortProperties prop, paramTypeForAuctionList param)
 {
     categories      = new CategoriesContext();
     auctions        = new AuctionContext();
     AuctionListView = new List <AuctionListViewModels>();
     AuctionListView = ReturnView(prop, param);
 }
Ejemplo n.º 2
0
        public List <AuctionListViewModels> ReturnView(SortProperties sortProperties, paramTypeForAuctionList param)
        {
            List <Auctions> selAuctions = ReturnAuctionList(param, sortProperties.id);

            foreach (Auctions item in selAuctions)
            {
                AuctionListView.Add(new AuctionListViewModels(item));
            }

            return(AuctionListView);
        }