How to get @Url.Action value inside a controller
<p>I am using <code>ASP.net core</code></p>

<p>I can use an Html action inside a view </p>

<pre><code>@Url.Action("GetOptions", "ControllerName", new { id="1"});
</code></pre>

<p>However I want to get a string value of it in the Controller.</p>

<p>e.g. something like</p>

<pre><code>string Url= Url.Action("GetOptions", "ControllerName", new { id="1"}).ToString();
</code></pre>

<p>In previous versions of MVC you can reference the helper in the controller by</p>

<pre><code>  UrlHelper urlHelper = new UrlHelper(HttpContext.Current.Request.RequestContext);
</code></pre>

<p>Basically what I want to do is generate a URL string representation in my controller</p>