I have a Web API that I need to convert to API Core 2. I have one issue I cannot seem to resolve. There is a redirect in the controller that uses Request.CreateResponse which does not appear to be available in .Net Core?
public HttpResponseMessage Get() { var response = Request.CreateResponse(HttpStatusCode.Redirect); response.Headers.Location = new Uri("https://xxx.xxxx.com"); return response; } Any idea how I can modify this to work? Basically if a user does not pass any parameters, we just send them to a web page.