Created
April 8, 2015 13:55
-
-
Save contensis/aee35af7333b34bfe50f 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.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