I have this method here and at the end of the method, I am looking to redirect the user. I have this code:
[HttpPost]
public HttpResponseMessage Post()
{
// Post Data to Database
HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Moved);
response.Headers.Location = new Uri("/airportboard");
return response;
}
but when I run this code, I get this error:
Invalid URI: The format of the URI could not be determined.
What am I doing wrong?