public IList<Grade> GetAllGrade()
 {
     IGradeDao gradeDao = new GradeDao(sessionFactory);
     IList<Grade> gradeList = gradeDao.LoadAll();
     return gradeList;
 }
 public IList<Grade> GetAllGrade()
 {
     IGradeDao gradeDao = new GradeDao(sessionFactory);
     try
     {
         return gradeDao.LoadAll();
     }
     catch (Exception e)
     {
         return null;
     }
 }