Exemplo n.º 1
0
        public IHttpActionResult Get()
        {
            List <Offer> offers = offerDal.GetAll();

            if (offers != null)
            {
                return(Ok(offers));
            }
            else
            {
                return(NotFound());
            }
        }
Exemplo n.º 2
0
 public List <Offer> GetOffersByDeveloperId(int developerId)
 {
     return(_offerDal.GetAll(x => x.DeveloperId == developerId, x => x.Developer, x => x.Job).OrderByDescending(x => x.Id).ToList());
 }