Example #1
0
        public bool Insert(string Name, int ConferenceId, string MapPath)
        {
            ConferenceHallsDAC conferencehallsComponent = new ConferenceHallsDAC();
            int ConferenceHallsId = 0;

            return(conferencehallsComponent.InsertNewConferenceHalls(ref ConferenceHallsId, Name, ConferenceId, MapPath));
        }
Example #2
0
        public bool Insert(ConferenceHalls conferencehalls)
        {
            int autonumber = 0;
            ConferenceHallsDAC conferencehallsComponent = new ConferenceHallsDAC();
            bool endedSuccessfuly = conferencehallsComponent.InsertNewConferenceHalls(ref autonumber, conferencehalls.Name, conferencehalls.ConferenceId, conferencehalls.MapPath);

            if (endedSuccessfuly)
            {
                conferencehalls.ConferenceHallsId = autonumber;
            }
            return(endedSuccessfuly);
        }