public async Task <ActionResult <PagedResult <Person> > > GetAsync([FromQuery] string[] filter, [FromQuery] string[] sort) { Console.WriteLine("filter size: " + filter.Length); Console.WriteLine("sort size: " + sort.Length); var query = _queryParameterParser.Parse <PersonQuery>(filter, sort); if (query.HasError || !query.IsPopulated) { return(BadRequest(new PagedResult <Person> { Errors = query.Errors })); } var result = await _queryRunner.RunAsync <Person, PersonQuery>(query); return(result); }