示例#1
0
 public async IAsyncEnumerable <MarkDto> GetMarksForTimeByStudentId(int studentId, DateTime startDate, DateTime endDate)
 {
     await foreach (var mark in _repository.GetMarksForTimeByStudentId(studentId, startDate, endDate))
     {
         yield return(mark.ToDto());
     }
 }