public async Task <ActionResult <IEnumerable <Zone> > > GetAllWorlds() { await _zoneService.RefreshStore(); IEnumerable <Zone> result = await _zoneService.GetAllZonesAsync(); return(result.ToArray()); }
public async Task <ActionResult <IEnumerable <Zone> > > Get() { var zones = await _zoneService.GetAllZonesAsync(); if (zones is null) { return(Ok()); } return(zones.ToList()); }