public bool Insert( string Name, string Description, string Location, int Star, string URL, string Phone, string Fax, string Email, int LanguageID, int ParentID) { HotelLanguageDAC hotellanguageComponent = new HotelLanguageDAC(); int ID = 0; return hotellanguageComponent.InsertNewHotelLanguage( ref ID, Name, Description, Location, Star, URL, Phone, Fax, Email, LanguageID, ParentID); }
public bool Insert(HotelLanguage hotellanguage) { int autonumber = 0; HotelLanguageDAC hotellanguageComponent = new HotelLanguageDAC(); bool endedSuccessfuly = hotellanguageComponent.InsertNewHotelLanguage( ref autonumber, hotellanguage.Name, hotellanguage.Description, hotellanguage.Location, hotellanguage.Star, hotellanguage.URL, hotellanguage.Phone, hotellanguage.Fax, hotellanguage.Email, hotellanguage.LanguageID, hotellanguage.ParentID); if(endedSuccessfuly) { hotellanguage.ID = autonumber; } return endedSuccessfuly; }