public ActionResult UpdateJobOffers(int idJobOfferToUpdate, CreateJobOfferDTO jobOfferValuesUpdated) { try { var jobOfferMapped = _mapper.Map <JobOffer>(jobOfferValuesUpdated); _jobOfferService.UpdateJobOfferById(idJobOfferToUpdate, jobOfferMapped); return(Ok()); } catch (KeyNotFoundException) { return(NotFound()); } }