public async Task <IActionResult> GetHourly(string city = null, string id = null, string zip = null) { if (Int32.TryParse(city, out int ID)) { city = null; id = ID.ToString(); } OpenWeatherService weatherService = new OpenWeatherService(); ResultRequest result = await weatherService.GetHourlyAsync(city, id, zip); ViewBag.Error = result.RequestStatus; return(View(result.Forecast)); }