# Microsoft.AspNetCore.Mvc.ControllerExtension

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="Microsoft_AspNetCore_Mvc_ControllerExtension" data-uid="Microsoft.AspNetCore.Mvc.ControllerExtension" class="text-break">ControllerExtension Class
</h1>
  <div class="markdown level0 summary"><p>Extends the <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.mvc.controller">Controller</a> for C1 MVC.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ControllerExtension</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.mvc">Microsoft.AspNetCore.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="Microsoft_AspNetCore_Mvc_ControllerExtension_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class ControllerExtension</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module ControllerExtension</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="Microsoft_AspNetCore_Mvc_ControllerExtension_C1EnableDeferredScripts_Microsoft_AspNetCore_Mvc_Controller_System_Boolean_" data-uid="Microsoft.AspNetCore.Mvc.ControllerExtension.C1EnableDeferredScripts(Microsoft.AspNetCore.Mvc.Controller,System.Boolean)">
          <a class="xref" href="Microsoft.AspNetCore.Mvc.ControllerExtension.C1EnableDeferredScripts.html#Microsoft_AspNetCore_Mvc_ControllerExtension_C1EnableDeferredScripts_Microsoft_AspNetCore_Mvc_Controller_System_Boolean_">C1EnableDeferredScripts(Controller, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Enable or disable deferred scripts feature in current controller or current action.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
