Sure:
public HttpResponseMessage Post()
{
// ... do the job
// now redirect
var response = Request.CreateResponse(HttpStatusCode.Moved);
response.Headers.Location = new Uri("http://www.abcmvc.com");
return response;
}
More Related Contents:
- How to add Web API to an existing ASP.NET MVC 4 Web Application project?
- ASP.NET MVC 4 Application Calling Remote WebAPI
- How to create two footer rows in jqgrid
- How to add and get Header values in WebApi
- Routing in Asp.net Mvc 4 and Web Api
- How to determine if using MVC4 vs MVC5 vs MVC6? [closed]
- How to pass json POST data to Web API method as an object?
- How to use jquery or ajax to update razor partial view in c#/asp.net for a MVC project
- Unity Inject dependencies into MVC filter class with parameters
- How can I specify an explicit ScriptBundle include order?
- Format datetime in asp.net mvc 4
- How to update a claim in ASP.NET Identity?
- The anti-forgery token could not be decrypted
- How to force ASP.NET Web API to always return JSON?
- Display DateTime value in dd/mm/yyyy format in Asp.NET MVC
- Return a JSON string explicitly from Asp.net WEBAPI?
- ASP.NET MVC 4 intercept all incoming requests
- Is there any good reason to use FormCollection instead of ViewModel?
- Razor actionlink autogenerating ?length=7 in URL?
- MVC Custom Validation for List on Client Side
- MVC4 input field placeholder
- AllowAnonymous not working with Custom AuthorizationAttribute
- Passing asp.net server parameters to Angular 2 app
- IIS hijacks CORS Preflight OPTIONS request
- Discovering Generic Controllers in ASP.NET Core
- CS0234: Mvc does not exist in the System.Web namespace
- Nested resources in ASP.net MVC 4 WebApi
- How do I create a MVC Razor template for DisplayFor()
- MVC 4 how to validate a non-US date with client validation?
- Include all files in a folder in a single bundle