예제 #1
0
        public void DeleteJobOffer(Guid id)
        {
            var jobOfferToDelete = _jobOfferRepository.GetSingleById(id);

            if (jobOfferToDelete != null)
            {
                _jobOfferRepository.Delete(jobOfferToDelete);
                if (!_jobOfferRepository.Save())
                {
                    throw new Exception("Deleting job offer failed!");
                }
            }
        }