title: Get html from ActionResult in razor view
body: <p>I have the following class:</p>
  
  <pre><code>public static class WidgetHelper
  {
      public static ActionResult RenderWidget&lt;T&gt;(this HtmlHelper htmlHelper)
      {
          var widgetControllerInstance = Activator.CreateInstance&lt;T&gt;() as WidgetController;
          return widgetControllerInstance.Index();
      }
  }
  </code></pre>
  
  <p>And call it from my razor view:</p>
  
  <pre><code>@(Html.RenderWidget&lt;TestWidgetController&gt;())
  </code></pre>
  
  <p>but the output is:</p>
  
  <pre><code>System.Web.Mvc.ViewResult
  </code></pre>
  
  <p>How do i get the html out of the ActionResult?</p>