source: iknow-api/Repository/Interface/IProfRepository.cs

Last change on this file was ea40556, checked in by Stefan-Saveski <stefansaveski19@…>, 8 days ago
  • ready for presentation
  • Property mode set to 100644
File size: 1.0 KB
Line 
1using iknow_api.Models;
2
3namespace iknow_api.Repositories
4{
5 public interface IProfRepository
6 {
7 /// <summary>
8 /// Every semester-subject row taught by this professor, with the
9 /// enrolment, student, subject, semester and grade loaded.
10 /// </summary>
11 Task<List<SemesterSubject>> GetTaughtSemesterSubjectsAsync(int professorId);
12
13 /// <summary>
14 /// The semester-subject row this professor teaches for one student and
15 /// subject. When a student has taken the subject more than once, the
16 /// most recent enrolment wins. Null when the professor does not teach
17 /// that student in that subject.
18 /// </summary>
19 Task<SemesterSubject?> FindTaughtSemesterSubjectAsync(int professorId, int studentId, int subjectId);
20
21 Task<PassedSubject?> GetPassedSubjectAsync(int semesterSubjectId);
22 Task AddPassedSubjectAsync(PassedSubject passed);
23 Task UpdatePassedSubjectAsync(PassedSubject passed);
24 Task RemovePassedSubjectAsync(PassedSubject passed);
25 }
26}
Note: See TracBrowser for help on using the repository browser.