Exemplo n.º 1
0
 public ActionResult <List <ResponseJobOfferWithCompanyDTO> > GetLast3Offers()
 {
     try
     {
         var last3JobOffers = _jobOfferService.GetLast3PostedJobOffers();
         var last3JobOffersWithCompanyDTO = _mapper.Map <List <ResponseJobOfferWithCompanyDTO> >(last3JobOffers);
         return(Ok(last3JobOffersWithCompanyDTO));
     }
     catch (KeyNotFoundException)
     {
         return(NotFound());
     }
 }