Skip to content

Instantly share code, notes, and snippets.

@contensis
Created April 8, 2015 13:55
Show Gist options
  • Save contensis/aee35af7333b34bfe50f to your computer and use it in GitHub Desktop.
Save contensis/aee35af7333b34bfe50f to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Specialized;
using System.Net.Http;
using Contensis.Framework.Web.Controllers;
namespace MyCompanyNamespace
{
/// <summary>
/// Process the results of a Contensis Form post and create a MS Dynamics CRM record
/// </summary>
public class EmptyFormsApiController : ContensisFormsApiController
{
/// <summary>
/// Process the Http Response from a Contensis Form and give response back to client.
/// </summary>
/// <param name="formValues">The form values.</param>
/// <returns></returns>
protected override HttpResponseMessage Post(NameValueCollection formValues)
{
return CreateResponse("Successful result from empty ContensisFormsApiController");
}
protected override bool SurpressPostToContensis
{
get { return false; }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment