public int UpdateEducation(EmpEducationDTO data) { EmployeeEducation dataToUpdate = EmpEducationRequestFormatter.ConvertRespondentInfoFromDTO(data); var res = _unitOfWork.EmployeeEducationRepository.Update(dataToUpdate); return(res); }
public EmpEducationDTO InsertEmpEducation(EmpEducationDTO data) { EmployeeEducation dataToInsert = EmpEducationRequestFormatter.ConvertRespondentInfoFromDTO(data); return(EmpEducationRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EmployeeEducationRepository.Create(dataToInsert))); }
public EmpEducationDTO GetEducationByEduId(int eduId) { return(EmpEducationRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EmployeeEducationRepository.GetById(eduId))); }