public ActionResult <List <Zone> > GetZones()
        {
            var Zones = _ZoneService.GetZones();

            if (Zones != null)
            {
                return(Ok(Zones));
            }

            return(NotFound());
        }
Exemple #2
0
 public async Task <ActionResult <List <Zone> > > GetZones(
     [FromServices] IZoneService zoneService,
     [FromQuery] ZoneQuery query)
 {
     return(await zoneService.GetZones(query));
 }