public IActionResult Update(string id, WeatherForecast forecastIn) { var forecast = _weatherForecastService.Get(id); if (forecast == null) { return(NotFound()); } _weatherForecastService.Update(id, forecastIn); return(NoContent()); }