protected void UpdateEventAttribute(FIL.Contracts.Commands.CreateEventV1.EventRecurranceCommand eventRecurranceCommand)
        {
            EventAttribute eventAttribute       = new EventAttribute();
            var            eventDetail          = _eventDetailRepository.GetByEventId(eventRecurranceCommand.EventId);
            var            eventTicketAttribute = _eventAttributeRepository.GetByEventDetailId(eventDetail.Id);

            if (eventTicketAttribute != null)
            {
                _eventAttributeRepository.Delete(eventTicketAttribute);
            }
            var eventAttributes = new EventAttribute
            {
                TimeZoneAbbreviation = eventRecurranceCommand.TimeZoneAbbrivation,
                EventDetailId        = eventDetail.Id,
                CreatedBy            = eventRecurranceCommand.ModifiedBy,
                CreatedUtc           = DateTime.UtcNow,
                IsEnabled            = true,
                TimeZone             = eventRecurranceCommand.TimeZoneOffSet,
                ModifiedBy           = eventRecurranceCommand.ModifiedBy,
                UpdatedBy            = eventRecurranceCommand.ModifiedBy,
                UpdatedUtc           = DateTime.UtcNow
            };

            _eventAttributeRepository.Save(eventAttributes);
        }
        protected void UpdateEventDetail(FIL.Contracts.Commands.CreateEventV1.EventRecurranceCommand eventRecurranceCommand)
        {
            var scheduleDetails = _getScheduleDetailProvider.GetScheduleDetails(eventRecurranceCommand.EventId, DateTime.UtcNow, DateTime.UtcNow, true).FirstOrDefault();
            var eventDetail     = _eventDetailRepository.GetByEventId(eventRecurranceCommand.EventId);

            eventDetail.StartDateTime = scheduleDetails.StartDateTime;
            eventDetail.EndDateTime   = scheduleDetails.EndDateTime;
            eventDetail.IsEnabled     = true;
            _eventDetailRepository.Save(eventDetail);
        }