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); }
public async Task <StudentDto[]> ListNotIncludedAsync(IncludedStudentsRequest request) => await HttpClient.GetFromJsonAsync <StudentDto[]>( $"api/StudentGroup/ListNotIncluded?GroupId={request.GroupId}");