예제 #1
0
        public ActionResult <List <Zone> > GetZones()
        {
            var Zones = _ZoneService.GetZones();

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

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