/// <summary> /// This method will be executed after cancel an appointment /// </summary> /// <param name="context"></param> /// <param name="result"></param> /// <returns></returns> private async Task ResumeAfterCancelDialog(IDialogContext context, IAwaitable <ReservationCancel> result) { try { try { ReservationCancel reservationCancel = await result; } catch (Exception e) { await context.PostAsync($"No records found"); } 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(ReservationCancel state) { bool setActive = false; return(setActive); }