public IEnumerable <PSUMajor> GetMajors(string DepartmentCode) { var tadapter = new Regist2005NewTableAdapters.MAJORTableAdapter(); return(majorsConverter(tadapter.GetDataByDeptID(DepartmentCode))); }
public PSUMajor GetMajor(string MajorCode) { var tadapter = new Regist2005NewTableAdapters.MAJORTableAdapter(); return(majorsConverter(tadapter.GetDataByMajorID(MajorCode)).SingleOrDefault()); }
public IEnumerable <PSUMajor> GetMajors() { Regist2005NewTableAdapters.MAJORTableAdapter tadapter = new Regist2005NewTableAdapters.MAJORTableAdapter(); return(majorsConverter(tadapter.GetData())); }