public IList<StudyYear> GetAllStudyYear()
 {
     IStudyYearDao studyYearDao= new StudyYearDao(sessionFactory);
     IList<StudyYear> studyYearList=studyYearDao.LoadAll();
     return studyYearList;
 }
 public IList<StudyYear> GetAllStudyYear()
 {
     IStudyYearDao studyYearDao = new StudyYearDao(sessionFactory);
     try
     {
         return studyYearDao.LoadAll();
     }
     catch (Exception e)
     {
         return null;
     }
 }