Esempio n. 1
0
        public bool Insert(string Name, string Description, string Location, int Star, string URL, string Phone, string Fax, string Email,int ConferenceID)
        {
            HotelDAC hotelComponent = new HotelDAC();
            int ID = 0;

            return hotelComponent.InsertNewHotel(ref ID, Name, Description, Location, Star, URL, Phone, Fax, Email,ConferenceID);
        }
Esempio n. 2
0
 public bool Insert(Hotel hotel)
 {
     int autonumber = 0;
     HotelDAC hotelComponent = new HotelDAC();
     bool endedSuccessfuly = hotelComponent.InsertNewHotel(ref autonumber, hotel.Name, hotel.Description, hotel.Location, hotel.Star, hotel.URL, hotel.Phone, hotel.Fax, hotel.Email,hotel.ConferenceID);
     if (endedSuccessfuly)
     {
         hotel.ID = autonumber;
     }
     return endedSuccessfuly;
 }