Beispiel #1
0
        public void PrintInfo()
        {
            var students      = _studentsRepository.Get();
            var teachers      = _teachersRepository.Get();
            var grades        = _gradesRepository.Get();
            var lessonClasses = _lessonClassesRepository.Get();

            Console.WriteLine("Students:");
            PrintEntities(students);

            Console.WriteLine("Teachers:");
            PrintEntities(teachers);

            Console.WriteLine("Grades:");
            PrintEntities(grades);

            Console.WriteLine("Classes:");
            PrintEntities(lessonClasses);
        }
 public async Task <Grade> Get(int id)
 {
     return(await gradesRepository.Get(id));
 }