Example #1
0
 public ReservationVM()
 {
     using (var db = new Y2kContext())
     {
         this.City = db.City.ToList();
     }
 }
Example #2
0
 public void GetWeather(int id)
 {
     using (Y2kContext context = new Y2kContext())
     {
         var city = context.City.Find(id);
         this.Weather = Resource.GetWeather(city.IdExternal);
     }
     GetMensaje();
 }