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(); } }
public void AddNewHotel(string name, string city, string adress, HotelChainIdentifier hotelChainIdentifier) { hotelList.Add(hotelChainIdentifier); }
public void AddNewHotel(string name, string city, string adress, HotelChainIdentifier hotelChainIdentifier) { Channel.AddNewHotel(name, city, adress, hotelChainIdentifier); }