Last active
May 23, 2023 07:23
-
-
Save contensis/e51ef6c5cafef1741156 to your computer and use it in GitHub Desktop.
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
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Formatting; | |
using System.Web.Http; | |
using Contensis.Framework.Web.Controllers; | |
namespace Zengenti | |
{ | |
[RoutePrefix("api/MyApiController")] | |
public class MyController : ContensisApiController | |
{ | |
[HttpPost] | |
[Route("MyAction")] | |
public HttpResponseMessage SuccessDisplayMessage(FormDataCollection data) | |
{ | |
return CreateResponse(string.Format("<p>Hello, {0}</p>", data["Firstname"])); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi guys, could you change the quotes? At the moment pasting this in will bring the site down (since it goes in App_Code)