Exemplo n.º 1
0
 public ReservationVM()
 {
     using (var db = new Y2kContext())
     {
         this.City = db.City.ToList();
     }
 }
Exemplo n.º 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();
 }