public JobOfferDTO AddJobOffer(JobOfferForManipulationDTO jobOffer) { var jobOfferToAdd = _mapper.Map <JobOffer>(jobOffer); jobOfferToAdd.DateOfAdding = DateTime.Now; _jobOfferRepository.Add(jobOfferToAdd); if (!_jobOfferRepository.Save()) { throw new Exception("Adding Job Offer has been failed!"); } return(_mapper.Map <JobOfferDTO>(jobOfferToAdd)); }