public static async Task <IList <City> > GetHasHistoricalSightAsync() { var rest = new CityRest(); var cities = await rest.GetHasHistoricalSightAsync() ?? GetLocalCities(); SetLocalCities(cities); return(cities); }
public async Task <IList <City> > GetHasHistoricalSightAsync() { var service = new CityRest(); var items = await service.GetHasHistoricalSightAsync(); ApplicationManager <string> .AddOrUpdate("cities", items); return(items.OrderBy(o => o.Name).ToList()); }
public static async Task <IList <City> > GetHasHistoricalSightAsync() { var rest = new CityRest(); var result = await rest.GetHasHistoricalSightAsync(); if (result.IsValid) { SetLocalCities(result.Value); return(result.Value); } else { return(GetLocalCities()); } }