in bot-integration-samples/hotel-finder/csharp/Controllers/MessagesController.cs [26:51]
public async Task<HttpResponseMessage> Post([FromBody]Activity activity)
{
if (activity.Type == ActivityTypes.Message)
{
if (IsSpellCorrectionEnabled)
{
try
{
activity.Text = await this.spellService.GetCorrectedTextAsync(activity.Text);
}
catch (Exception ex)
{
Trace.TraceError(ex.ToString());
}
}
await Conversation.SendAsync(activity, () => new RootLuisDialog());
}
else
{
this.HandleSystemMessage(activity);
}
var response = Request.CreateResponse(HttpStatusCode.OK);
return response;
}