public CurrentWeatherDomainModel MapToCurrentWeatherDomainModel(OpenWeatherCurrentWeatherDataModel datamodel) { CurrentWeatherDomainModel domainModel = new CurrentWeatherDomainModel(); domainModel.Temperature = datamodel.Main.Temp; domainModel.WeatherDescription = datamodel.Weather[0].Description; return(domainModel); }
private static CurrentWeatherDomainModel GetCurrentWeatherForecastDomainModel(OpenWeatherCurrentWeatherDataModel model) { MapperCurrentWeatherDomainModel mapper = new MapperCurrentWeatherDomainModel(); return(mapper.MapToCurrentWeatherDomainModel(model)); }