Пример #1
0
        public int UpdateEducation(EmpEducationDTO data)
        {
            EmployeeEducation dataToUpdate = EmpEducationRequestFormatter.ConvertRespondentInfoFromDTO(data);
            var res = _unitOfWork.EmployeeEducationRepository.Update(dataToUpdate);

            return(res);
        }
Пример #2
0
        public EmpEducationDTO InsertEmpEducation(EmpEducationDTO data)
        {
            EmployeeEducation dataToInsert = EmpEducationRequestFormatter.ConvertRespondentInfoFromDTO(data);

            return(EmpEducationRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EmployeeEducationRepository.Create(dataToInsert)));
        }
Пример #3
0
 public EmpEducationDTO GetEducationByEduId(int eduId)
 {
     return(EmpEducationRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EmployeeEducationRepository.GetById(eduId)));
 }