public Task <WeatherForecast> CreateForecastAsync(WeatherForecast objWeatherForecast) { _context.WeatherForecast.Add(objWeatherForecast); _context.SaveChanges(); return(Task.FromResult(objWeatherForecast)); }
public Task <WeatherForecast> CreateForecastAsync(WeatherForecast objWeatherForecast) { _context.WeatherForecast.Add(objWeatherForecast); _context.SaveChanges(); return(Task.FromResult(objWeatherForecast)); }