internal IList<DepartMajor> GetAllDepartMajor(string teacherDepart) { IDepartMajorDao departMajorDao = new DepartMajorDao(sessionFactory); IList<DepartMajor> departMajorList=departMajorDao.GetDepartMajor(teacherDepart); return departMajorList; }
public IList<DepartMajor> GetDepartMajorList(string departName) { IDepartMajorDao departMajorDao = new DepartMajorDao(sessionFactory); try { return departMajorDao.GetDepartMajorList(departName); } catch (Exception e) { return null; } }