Last active
August 29, 2015 14:18
-
-
Save contensis/e12052ff3f91fedff5d0 to your computer and use it in GitHub Desktop.
This file contains 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
using System; | |
using System.Collections.Specialized; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Formatting; | |
using System.Web.Http; | |
using Contensis.Framework.Web.Controllers; | |
namespace MyCompanyNamespace | |
{ | |
/// <summary> | |
/// Handle the response from a Contensis Form Html Helper, or | |
/// any other Contensis interaction via Http | |
/// </summary> | |
[RoutePrefix("api/custom/myendpoint")] | |
public class MyExampleApiController : ContensisApiController | |
{ | |
[HttpPost] | |
[Route("myAction")] | |
public HttpResponseMessage MyAction(FormDataCollection data) | |
{ | |
return CreateResponse("Success message."); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment