I\'m very new to ASP.NET 4.0 Web API. Can we redirect to another URL at the end of the POST action?, something like ... Response.Redirect(url)
Response.Redirect(url)
Actually
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; }