Created
May 1, 2018 01:49
-
-
Save sunnyy02/c79165139a6b510fb6e33bb842e96a82 to your computer and use it in GitHub Desktop.
MVC Controller for Webhook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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