public async Task <ActionResult <List <Host> > > GetHost([FromQuery] HostFilteringParameters filter) { this.logger.LogInformation($"Loading hosts where {filter?.ToString()}"); var hosts = await this.hostService.LoadHostAsync(filter); if (hosts.Count == 0) { return(NotFound()); } return(Ok(hosts)); }