コード例 #1
0
 public void AddNewHotel(string name, string city, string address, HotelChainIdentifier hotelChainIdentifier)
 {
     using (var dbContext = new HotelContext())
     {
         var hotel = new Hotel()
         {
             Name = name, City = city, Address = address, HotelChainsId = hotelChainIdentifier.ID
         };
         var dbInsert = dbContext.Hotels.Add(hotel);
         dbContext.SaveChanges();
     }
 }
コード例 #2
0
 public void AddNewHotel(string name, string city, string adress, HotelChainIdentifier hotelChainIdentifier)
 {
     hotelList.Add(hotelChainIdentifier);
 }
コード例 #3
0
 public void AddNewHotel(string name, string city, string adress, HotelChainIdentifier hotelChainIdentifier)
 {
     Channel.AddNewHotel(name, city, adress, hotelChainIdentifier);
 }