/// <summary>
        /// To process contact information
        /// </summary>
        /// <returns></returns>
        public void ProcessContact()
        {
            trace.Trace("Processing Contact information - start");
            XrmResponse xrmResponse = null;

            if (payloadBooking.BookingInfo != null && payloadBooking.BookingInfo.Customer != null)
            {
                var customer = payloadBooking.BookingInfo.Customer;
                var contact  = ContactHelper.GetContactEntityForBookingPayload(customer, trace);
                xrmResponse = CommonXrm.UpsertEntity(contact, crmService);

                if (xrmResponse.Create)
                {
                    payloadBooking.DeleteBookingRole = true;
                }
                else
                {
                    payloadBooking.DeleteBookingRole = false;
                }

                payloadBooking.CustomerId = xrmResponse.Id;

                trace.Trace("Processing Contact information - end");
            }
        }
        /// <summary>
        /// To process booking information
        /// </summary>
        /// <returns></returns>
        public void ProcessBookingInfo()
        {
            trace.Trace("Processing Booking - start");
            XrmResponse xrmResponse   = null;
            var         bookingEntity = BookingHelper.GetBookingEntityFromPayload(payloadBooking.BookingInfo, trace);

            xrmResponse             = CommonXrm.UpsertEntity(bookingEntity, crmService);
            payloadBooking.Response = new BookingResponse();

            if (xrmResponse.Create)
            {
                payloadBooking.DeleteBookingRole  = false;
                payloadBooking.DeleteChildRecords = false;
                payloadBooking.Response.Created   = true;
            }
            payloadBooking.BookingId   = xrmResponse.Id;
            payloadBooking.Response.Id = xrmResponse.Id;

            trace.Trace("Processing Booking - end");
        }