public Offer GetById(int id) { OfferRepository <Offer> Offerrepo = new OfferRepository <Offer>(); return(Offerrepo.GetById(id)); }