Пример #1
0
        public CourseInstance GetCourse(Guid id)
        {
            var course = _courseRepository.FindBy(m => m.Id == id).FirstOrDefault();

            return(course);
        }
        public File GetFile(Guid id)
        {
            var file = _fileRepository.FindBy(m => m.Id == id).FirstOrDefault();

            return(file);
        }
Пример #3
0
 public Question GetQuestion(Guid id)
 {
     var question = _questionRepository.FindBy(s => s.Id == id).FirstOrDefault();
     return question;
 }
        public Professor GetProfessor(Guid id)
        {
            var professor = _professorRepository.FindBy(s => s.Id == id).FirstOrDefault();

            return(professor);
        }
        public Mark GetMark(Guid id)
        {
            var mark = _markRepository.FindBy(m => m.Id == id).FirstOrDefault();

            return(mark);
        }
Пример #6
0
        public LaboratoryInstance GetLaboratory(Guid id)
        {
            var laboratory = _laboratoryRepository.FindBy(m => m.Id == id).FirstOrDefault();

            return(laboratory);
        }
        public Homework GetHomework(Guid id)
        {
            var homework = _homeworkRepository.FindBy(m => m.Id == id).FirstOrDefault();

            return(homework);
        }
Пример #8
0
        public Student GetStudent(Guid id)
        {
            var student = _studentRepository.FindBy(s => s.Id == id).FirstOrDefault();

            return(student);
        }
Пример #9
0
        public SeminarInstance GetSeminar(Guid id)
        {
            var seminar = _seminarRepository.FindBy(m => m.Id == id).FirstOrDefault();

            return(seminar);
        }
        public UniSubject GetSubject(Guid id)
        {
            var subject = _repository.FindBy(s => s.Id == id).FirstOrDefault();

            return(subject);
        }
        public Answer GetAnswer(Guid id)
        {
            var question = _answerRepository.FindBy(s => s.Id == id).FirstOrDefault();

            return(question);
        }
Пример #12
0
        public Attendance GetAttendance(Guid id)
        {
            var attendance = _attendanceRepository.FindBy(a => a.Id == id).FirstOrDefault();

            return(attendance);
        }