Esempio n. 1
0
 public static Exception DeleteHotel(List <Hotel> hotels)
 {
     TourBaseEntities.GetContext().Hotels.RemoveRange(hotels);
     try
     {
         GetContext().SaveChanges();
         return(null);
     }
     catch (Exception ex)
     {
         return(ex);
     }
 }
Esempio n. 2
0
 public FirstPage()
 {
     InitializeComponent();
     DGridHotels.ItemsSource = TourBaseEntities.GetContext().Hotels.ToList();
 }