Example #1
0
        public List <Offer> GetListPaged(int pagenumber, int itemsperpage, string conditions, string order, int statusproject)
        {
            OfferRepository <Offer> Offerrepo = new OfferRepository <Offer>();
            List <Offer>            lista     = Offerrepo.GetListPaged <Entities.Offer, Entities.Category>(pagenumber, itemsperpage, conditions, order, statusproject).ToList().Select(e => new Offer().InjectFrom(e)).Cast <Offer>().OrderByDescending(e => e.DateOffer).ToList();


            return(lista);
        }