public List <Offer> GetList() { OfferRepository <Offer> Offerrepo = new OfferRepository <Offer>(); return(Offerrepo.GetList().ToList().Select(e => new Offer().InjectFrom(e)).Cast <Offer>().ToList()); }
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()); }