public static WeatherForecast MapToBusiness(WeatherForecastExt weatherForecastExt) { return(new WeatherForecast { Date = weatherForecastExt.Date, Summary = weatherForecastExt.Summary, TemperatureC = weatherForecastExt.TemperatureC, }); }
public void Post(WeatherForecastExt weatherForecastExt) { _weatherForecastPost.Save(WeatherForecastMapper.MapToBusiness(weatherForecastExt)); }