示例#1
0
        public List <Offer> GetList()
        {
            OfferRepository <Offer> Offerrepo = new OfferRepository <Offer>();

            return(Offerrepo.GetList().ToList().Select(e => new Offer().InjectFrom(e)).Cast <Offer>().ToList());
        }
示例#2
0
        public List <Offer> GetList(string whereConditions)
        {
            OfferRepository <Offer> Offerrepo = new OfferRepository <Offer>();

            return(Offerrepo.GetList(whereConditions).ToList().Select(e => new Offer().InjectFrom(e)).Cast <Offer>().ToList());
        }