Skip to content

Instantly share code, notes, and snippets.

@sunnyy02
Created May 1, 2018 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunnyy02/c79165139a6b510fb6e33bb842e96a82 to your computer and use it in GitHub Desktop.
Save sunnyy02/c79165139a6b510fb6e33bb842e96a82 to your computer and use it in GitHub Desktop.
MVC Controller for Webhook
public class NotifyController : Controller
{
[HttpPost]
public async Task<ActionResult> SubmitNewInquiry(string inquiryMessage)
{
await this.NotifyAsync("NewInquiry", new { Message = inquiryMessage });
return new EmptyResult();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment