Ejemplo n.º 1
0
        public PSUDepartment GetDepartment(string DepartmentCode)
        {
            var tadapter = new Regist2005NewTableAdapters.DEPTTableAdapter();
            var depTable = tadapter.GetDataByDeptID(DepartmentCode);

            return(departmentsConverter(depTable).SingleOrDefault());
        }
Ejemplo n.º 2
0
        public IEnumerable <PSUDepartment> GetDepartments()
        {
            Regist2005NewTableAdapters.DEPTTableAdapter tadapter = new Regist2005NewTableAdapters.DEPTTableAdapter();
            var depTable = tadapter.GetData();

            return(departmentsConverter(depTable));
        }
Ejemplo n.º 3
0
        public IEnumerable <PSUDepartment> GetDepartments(string FacultyCode)
        {
            if (string.IsNullOrWhiteSpace(FacultyCode))
            {
                return(null);
            }
            var tadapter = new Regist2005NewTableAdapters.DEPTTableAdapter();
            var facTable = tadapter.GetDataByFacID(FacultyCode);

            return(departmentsConverter(facTable));
        }