using iknow_api.Models;
namespace iknow_api.Repositories
{
public interface IProfRepository
{
///
/// Every semester-subject row taught by this professor, with the
/// enrolment, student, subject, semester and grade loaded.
///
Task> GetTaughtSemesterSubjectsAsync(int professorId);
///
/// The semester-subject row this professor teaches for one student and
/// subject. When a student has taken the subject more than once, the
/// most recent enrolment wins. Null when the professor does not teach
/// that student in that subject.
///
Task FindTaughtSemesterSubjectAsync(int professorId, int studentId, int subjectId);
Task GetPassedSubjectAsync(int semesterSubjectId);
Task AddPassedSubjectAsync(PassedSubject passed);
Task UpdatePassedSubjectAsync(PassedSubject passed);
Task RemovePassedSubjectAsync(PassedSubject passed);
}
}