Esempio n. 1
0
        public bool Insert(int PersonId, int ConferenceId, DateTime DateRegistered, string SpeakerImage, string SpeakerPosition, string SpeakerBio, string FlightfromCountry, string FlightFromCity, string FlightToCountry, string FlightToCity, string FlightNO, DateTime ArrivalDate, string ArrivalTime, DateTime DepratureDate, string DepratureTime, int AirllineID, int HotelID, int ResponsiblePersonID, string ArrivalTimeAMorPM, string DepratureTimeAMorPM)
        {
            InvitedGuestsDAC invitedguestsComponent = new InvitedGuestsDAC();
            int ID = 0;

            return invitedguestsComponent.InsertNewInvitedGuests(ref ID, PersonId, ConferenceId, DateRegistered, SpeakerImage, SpeakerPosition, SpeakerBio, FlightfromCountry, FlightFromCity, FlightToCountry, FlightToCity, FlightNO, ArrivalDate, ArrivalTime, DepratureDate, DepratureTime, AirllineID, HotelID, ResponsiblePersonID, ArrivalTimeAMorPM, DepratureTimeAMorPM);
        }
Esempio n. 2
0
 public bool Insert(InvitedGuests invitedguests)
 {
     int autonumber = 0;
     InvitedGuestsDAC invitedguestsComponent = new InvitedGuestsDAC();
     bool endedSuccessfuly = invitedguestsComponent.InsertNewInvitedGuests(ref autonumber, invitedguests.PersonId, invitedguests.ConferenceId, invitedguests.DateRegistered, invitedguests.SpeakerImage, invitedguests.SpeakerPosition, invitedguests.SpeakerBio, invitedguests.FlightfromCountry, invitedguests.FlightFromCity, invitedguests.FlightToCountry, invitedguests.FlightToCity, invitedguests.FlightNO, invitedguests.ArrivalDate, invitedguests.ArrivalTime, invitedguests.DepratureDate, invitedguests.DepratureTime, invitedguests.AirllineID, invitedguests.HotelID, invitedguests.ResponsiblePersonID, invitedguests.ArrivalTimeAMorPM, invitedguests.DepratureTimeAMorPM);
     if (endedSuccessfuly)
     {
         invitedguests.ID = autonumber;
     }
     return endedSuccessfuly;
 }