Пример #1
0
        public async Task <ActionResult <StudentDto[]> > ListNotIncludedAsync([FromQuery] IncludedStudentsRequest request)
        {
            var filter   = new NotIncludedStudentsSpecification(request.GroupId);
            var students = await _studentCrudService.ListAsync(filter)
                           .Select(DtoExtensions.ToDto)
                           .ToArrayAsync();

            return(students);
        }
Пример #2
0
 public async Task <StudentDto[]> ListNotIncludedAsync(IncludedStudentsRequest request) =>
 await HttpClient.GetFromJsonAsync <StudentDto[]>(
     $"api/StudentGroup/ListNotIncluded?GroupId={request.GroupId}");