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()); } }