Ejemplo n.º 1
0
        public List <Term> LoadTerms()
        {
            FileDataObject fdo = new FileDataObject(_dataDirectory);

            var semesters = fdo.ReadSemestersFile();
            var rawTerms  = fdo.ReadTermsFile();

            var query =
                from rawTerm in rawTerms
                join semester in semesters on rawTerm.SemesterCode equals semester.Code
                select new Term {
                TermCode = rawTerm.TermCode, SemesterCode = semester.Code, Year = rawTerm.Year, Semester = semester
            };

            return(query.ToList());
        }
Ejemplo n.º 2
0
        public List <Grade> LoadGrades()
        {
            FileDataObject fdo = new FileDataObject(_dataDirectory);

            return(fdo.ReadGradesFile());
        }
        public List <Semester> LoadSemesters()
        {
            FileDataObject fdo = new FileDataObject(_dataDirectory);

            return(fdo.ReadSemestersFile());
        }
        public List <Department> GetDepartments()
        {
            FileDataObject fdo = new FileDataObject(_dataDirectory);

            return(fdo.ReadDepartmentsFile());
        }