public async static Task SendClearFilter(WaterfallStepContext stepContext) { FilterForWordJson json = new FilterForWordJson(); //Set keywords to none string messageForUser = "******"; //This would send the JSON to the Backend //await HttpPostRequestAsync(stepContext, "http://localhost:5000/keywords/delete/all", json, messageFoUser); //This sends the json to the frontend await SendActivityAsync(stepContext, "/keywords/delete/all", json, messageForUser); }
public async static Task SendFilterForWord(WaterfallStepContext stepContext, string p_column, string[] p_values) { FilterForWordJson json = new FilterForWordJson { column = p_column, values = p_values }; string messageForUser = "******" + String.Join(", ", p_values); //await HttpPostRequestAsync(stepContext, "http://localhost:5000/keywords/add-word", json, messageForUser); //This sends the json to the frontend await SendActivityAsync(stepContext, "/keywords/add-word", json, messageForUser); }