Last active
May 23, 2023 07:24
-
-
Save contensis/825ebb2a4187e49dc1ba 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.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 UserRegistrationController : ContensisApiController | |
{ | |
[HttpPost] | |
[Route("MyAction")] | |
public HttpResponseMessage SuccessRedirect(FormDataCollection data) | |
{ | |
return CreateResponse("Success. Redirecting", HttpPostResponseAction.Redirect, new HttpRedirectOptions { Url="http://www.MyOtherWebsite.com/customUrl"}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment