public AuctionListContext(SortProperties prop, paramTypeForAuctionList param)
 {
     categories      = new CategoriesContext();
     auctions        = new AuctionContext();
     AuctionListView = new List <AuctionListViewModels>();
     AuctionListView = ReturnView(prop, param);
 }
        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);
        }