Пример #1
0
 public static EducationDto createEducationDTO(String EducationId, String EducationDescription)
 {
     EducationDto edu = new EducationDto();
     edu.EducationId = EducationId;
     edu.EducationDescription = EducationDescription;
     return edu;
 }
Пример #2
0
 public static EducationDto createEducationDTO(Education obj)
 {
     EducationDto edu = new EducationDto();
     edu.EducationId = obj.EducationId;
     edu.EducationDescription = obj.EducationDescription;
     return edu;
 }
Пример #3
0
 public Boolean deleteEducation(EducationDto dto)
 {
     Education obj = Education.createEducation(dto.EducationId, dto.EducationDescription);
     EducationManager mgr = new EducationManager();
     return mgr.deleteEducation(obj);
 }
Пример #4
0
 public EducationDto selectEducationById(EducationDto dto)
 {
     EducationManager mgr = new EducationManager();
     Education obj = new Education();
     obj.EducationId = dto.EducationId;
     obj = mgr.selectEducationById(obj);
     if (obj != null)
     {
         return EducationDto.createEducationDTO(obj);
     }
     else
     {
         return null;
     }
 }