I am very new to ASP.NET. I am attempting to configure a webhook for Twilio. I have created a default asp.net application with no real code changes from it's creation with the exception of adding in the Twilio helper libraries and Creating a controller based on their tutorial. I am using ngrok to tunnel in the http requests from Twilio. on the ngrok control panel it shows that a 'post/' came in when I send a text message from my phone. But the example is supposed to respond with "Hello World" I believe my app is receiving the http request but it is not responding. Below is the code I cut and pasted from the Twilio example. I am not sure how the http request is supposed to get to this controller. I believe that is the part I am missing. The public Class TwLHandler is showing 0 references.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web.Mvc;
using Twilio.AspNet.Common;
using Twilio.AspNet.Mvc;
using Twilio.TwiML;
namespace DAMTwilio.Controllers
{
public class TwLHandler : TwilioController
{
[HttpPost]
public TwiMLResult Index(SmsRequest request)
{
var response = new MessagingResponse();
response.Message("Hello World");
return TwiML(response);
}
}
}