I have an ASP.NET web controller that receives requests from the front-end and needs to show a web page from another ASP.NET server. So far I have this and it does the simple job of redirecting:
public ActionResult RedirectToAdminPanel(string url)
{
return new RedirectResult(url);
}
The url contains some parameters and values, which I transfer to the other server. I need to have a few more I do not want to show in the front-end. An example is a token.
I was going to concatenating the url with those hidden values in the method above but I wonder if there is a better way.