Beispiel #1
0
        /// <summary>
        /// Example of how to add a booking
        /// </summary>
        /// <param name="orgCode"></param>
        /// <param name="Event">The ID of the event you want to attach the booking to</param>
        /// <param name="space">This is the user-configurable space code the booking takes place in</param>
        /// <param name="startDate">This should be set to the start date of the booking </param>
        /// <param name="endDate">This should be set to the start time of the booking </param>
        /// <param name="startTime">This should be set to the end date of the booking </param>
        /// <param name="endTime">This should be set to the end time of the booking </param>
        public BookingsModel Add(string orgCode, int Event, string space, DateTime startDate, DateTime endDate, DateTime startTime, DateTime endTime)
        {
            var myBooking = new BookingsModel
            {
                OrganizationCode = orgCode,
                Event            = Event,
                Daily            = "Y", //Y or N
                Space            = space,
                StartTime        = startTime,
                StartDate        = startDate,
                EndTime          = endTime,
                EndDate          = endDate,
            };

            return(APIUtil.AddBookingWithoutConflictCheck(USISDKClient, myBooking));
        }