public void DeleteWeather(int id) { MyPlace myweather = db.MyPlaces.Find(id); db.MyPlaces.Remove(myweather); db.SaveChanges(); }
public void CreateWeather(MyPlace weather) { db.MyPlaces.Add(weather); db.SaveChanges(); }
public MyPlace GetWeather(int id) { MyPlace myweather = db.MyPlaces.Find(id); return(myweather); }