public JobTypeDTO InsertJobType(JobTypeDTO data) { JobType dataToInsert = new JobType(); dataToInsert = JobTypeRequestFormatter.ConvertRespondentInfoFromDTO(data); return(JobTypeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.JobTypeRepository.Create(dataToInsert))); }
public int UpdateJobType(JobTypeDTO data) { JobType dataToUpdate = JobTypeRequestFormatter.ConvertRespondentInfoFromDTO(data); int res = _unitOfWork.JobTypeRepository.Update(dataToUpdate); _unitOfWork.Save(); return(res); }