Generate Url during runtime from asp.net mvc controller/action
<p>I have such a url:</p>

<pre><code>www.test.com/MyAreaName/MyControllerName/MyAction?key1=value&amp;key2=value
</code></pre>

<p>I need a method like:</p>

<pre><code>string generatedUrlWithQueryParams = Url.Action&lt;MyController&gt;(x =&gt; x.MyAction(MyViewModel));
</code></pre>

<p>I need to call the above method from a .cs class NOT from razor html file.</p>

<p>How can I do that? I heard of asp.net mvc futures but I can not find the appropriate method or namespace to use that method.</p>