public async Task Cancel(IDialogContext context, LuisResult result)
        {
            var entity   = new CancelMeetingRoomForm();
            var entities = new List <EntityRecommendation>(result.Entities);

            await context.PostAsync("Here you have all!!!");

            await PostMeetingRoomCarousel(context, "PostBack");

            PromptDialog.Text(context, this.SaveChangesfromCancelBooking, "Tell me the meeting room you want to cancel.");
        }
Exemple #2
0
        public static void DeleteEventOutlook(CancelMeetingRoomForm data)
        {
            try
            {
                Application app = new Application();

                MAPIFolder        calendar      = app.Session.GetDefaultFolder(OlDefaultFolders.olFolderCalendar);
                Items             calendarItems = calendar.Items;
                AppointmentItem   item          = calendarItems["Test Appointment"] as AppointmentItem;
                RecurrencePattern pattern       = item.GetRecurrencePattern();
                AppointmentItem   itemDelete    = pattern.GetOccurrence(new DateTime(2006, 6, 28, 8, 0, 0));

                if (itemDelete != null)
                {
                    itemDelete.Delete();
                }
            }
            catch (System.Exception)
            {
            }
        }