Exemple #1
0
 public ActionResult <List <ResponseJobOfferWithPostal> > GetJobOffersOnPostal(string postal)
 {
     try
     {
         var jobOffersOnPostal = _jobOfferService.GetJobOffersOnPostal(postal);
         var listJobOffersOnPostalWithCompanyDTO = _mapper.Map <List <ResponseJobOfferWithPostal> >(jobOffersOnPostal);
         return(Ok(listJobOffersOnPostalWithCompanyDTO));
     }
     catch (KeyNotFoundException)
     {
         return(NotFound());
     }
 }