public static Weather Create(DrumbleApp.Shared.Entities.Weather weather) { if (weather == null) { return(null); } return(new Weather(weather.Id, weather.IconCode, weather.LastRefreshedDate)); }
public void Insert(DrumbleApp.Shared.Entities.Weather weather) { base.DbSet.InsertOnSubmit(DataModelFactory.Create(weather)); }