예제 #1
0
        public JobTypeDTO InsertJobType(JobTypeDTO data)
        {
            JobType dataToInsert = new JobType();

            dataToInsert = JobTypeRequestFormatter.ConvertRespondentInfoFromDTO(data);
            return(JobTypeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.JobTypeRepository.Create(dataToInsert)));
        }
예제 #2
0
        public int UpdateJobType(JobTypeDTO data)
        {
            JobType dataToUpdate = JobTypeRequestFormatter.ConvertRespondentInfoFromDTO(data);
            int     res          = _unitOfWork.JobTypeRepository.Update(dataToUpdate);

            _unitOfWork.Save();
            return(res);
        }