namespace iknow_api.DTOs { /// One subject a professor teaches, with the students enrolled in it. public class SubjectStudentsDto { public int Id { get; set; } public string? Name { get; set; } public string? Code { get; set; } public List Users { get; set; } = new(); } public class EnrolledStudentDto { /// users.id - what the grading endpoints expect as StudentId. public int Id { get; set; } public string? Name { get; set; } /// users.index - the number a professor actually recognises. public string? Index { get; set; } /// 0 when the subject has not been graded yet. public int Grade { get; set; } public string? Semester { get; set; } } public class GradeRequestDto { public int StudentId { get; set; } public int SubjectId { get; set; } public int Grade { get; set; } } public class GradeResultDto { public bool Ok { get; set; } public string? Message { get; set; } } }