Exemple #1
0
 /// <summary>
 /// Thi method will be executed after reschedule an appointment
 /// </summary>
 /// <param name="context"></param>
 /// <param name="result"></param>
 /// <returns></returns>
 private async Task ResumeAfterRescheduleDialog(IDialogContext context, IAwaitable <ReservationReschedule> result)
 {
     try
     {
         try { ReservationReschedule reservationReschedule = await result; }
         catch (Exception e)
         {
             await context.PostAsync($"No records found");
         }
         // await context.PostAsync("Thank you for your time, Come back soon!  \n***********************************************************");
         this.ShowOptions(context);
     }
     catch (Exception ex)
     {
         await context.PostAsync($"Failed with message: {ex.Message}");
     }
 }
        /// <summary>
        /// This method is inside a delegate that inactive the specific field when form flow is running, through the bool property
        /// </summary>
        /// <param name="state"></param>
        /// <returns></returns>
        private static bool InactiveField(ReservationReschedule state)
        {
            bool setActive = false;

            return(setActive);
        }