/// <summary> /// Gets the updated weather and store it as a new record in the database /// Further implementation to consdier: /// - Depends on the scenario, you could choose async or sync database save /// - Check last updated date time, prior to web service calls. /// </summary> /// <returns>The updated weather.</returns> /// <param name="uri">URI.</param> public async Task<Weather> GetUpdatedWeather (string uri) { var service = new WeatherService (); var response = await service.FetchWeatherAsync (uri); // // You could choose to save async as well, and return the response object directly to the front-end var savedId = Save (response); return response; }