public ActionResult <List <Zone> > GetZones() { var Zones = _ZoneService.GetZones(); if (Zones != null) { return(Ok(Zones)); } return(NotFound()); }
public async Task <ActionResult <List <Zone> > > GetZones( [FromServices] IZoneService zoneService, [FromQuery] ZoneQuery query) { return(await zoneService.GetZones(query)); }