Skip to content

Instantly share code, notes, and snippets.

@kerslake
Created August 27, 2014 09:19
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 kerslake/ecdb43e37ecc3c9644ef to your computer and use it in GitHub Desktop.
Save kerslake/ecdb43e37ecc3c9644ef to your computer and use it in GitHub Desktop.
public abstract class TwilioApiController : ApiController
{
protected HttpResponseMessage TwiMLResponse(TwilioResponse response)
{
return this.Request.CreateResponse(HttpStatusCode.OK, response.Element, new XmlMediaTypeFormatter());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment