# C1.Web.Api.C1ApiController

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Api_C1ApiController" data-uid="C1.Web.Api.C1ApiController" class="text-break">C1ApiController Class
</h1>
  <div class="markdown level0 summary"><p>Defines the base class for the api controller.</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.mvc.controllerbase">ControllerBase</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.mvc.controller">Controller</a></div>
    <div class="level3"><span class="xref">C1ApiController</span></div>
      <div class="level4"><a class="xref" href="../C1.AspNetCore.Api.DataEngine/C1.Web.Api.DataEngine.DataEngineController.html">DataEngineController</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.mvc.filters.iactionfilter">IActionFilter</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.mvc.filters.iasyncactionfilter">IAsyncActionFilter</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.mvc.filters.ifiltermetadata">IFilterMetadata</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Api.html">C1.Web.Api</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Api.dll</h6>
  <h5 id="C1_Web_Api_C1ApiController_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1ApiController : Controller, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1ApiController
    Inherits Controller
    Implements IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Api_C1ApiController__ctor" data-uid="C1.Web.Api.C1ApiController.#ctor">
          <a class="xref" href="C1.Web.Api.C1ApiController.-ctor.html#C1_Web_Api_C1ApiController__ctor">C1ApiController()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Formatters" data-uid="C1.Web.Api.C1ApiController.Formatters">
          <a class="xref" href="C1.Web.Api.C1ApiController.Formatters.html#C1_Web_Api_C1ApiController_Formatters">Formatters</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the media-type formatters for this instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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="C1_Web_Api_C1ApiController_BadRequest_Microsoft_AspNetCore_Mvc_ModelBinding_ModelStateDictionary_" data-uid="C1.Web.Api.C1ApiController.BadRequest(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary)">
          <a class="xref" href="C1.Web.Api.C1ApiController.BadRequest.html#C1_Web_Api_C1ApiController_BadRequest_Microsoft_AspNetCore_Mvc_ModelBinding_ModelStateDictionary_">BadRequest(ModelStateDictionary)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an Microsoft.AspNetCore.Mvc.BadRequestObjectResult that produces a Bad
Request (400) response.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_BadRequest_System_Object_" data-uid="C1.Web.Api.C1ApiController.BadRequest(System.Object)">
          <a class="xref" href="C1.Web.Api.C1ApiController.BadRequest.html#C1_Web_Api_C1ApiController_BadRequest_System_Object_">BadRequest(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an Microsoft.AspNetCore.Mvc.BadRequestObjectResult that produces a Bad
Request (400) response.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Created_System_String_System_Object_" data-uid="C1.Web.Api.C1ApiController.Created(System.String,System.Object)">
          <a class="xref" href="C1.Web.Api.C1ApiController.Created.html#C1_Web_Api_C1ApiController_Created_System_String_System_Object_">Created(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a Microsoft.AspNetCore.Mvc.CreatedResult object that produces a Created
(201) response.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Created_System_Uri_System_Object_" data-uid="C1.Web.Api.C1ApiController.Created(System.Uri,System.Object)">
          <a class="xref" href="C1.Web.Api.C1ApiController.Created.html#C1_Web_Api_C1ApiController_Created_System_Uri_System_Object_">Created(Uri, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a Microsoft.AspNetCore.Mvc.CreatedResult object that produces a Created
(201) response.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_CreatedAtAction_System_String_System_String_System_Object_System_Object_" data-uid="C1.Web.Api.C1ApiController.CreatedAtAction(System.String,System.String,System.Object,System.Object)">
          <a class="xref" href="C1.Web.Api.C1ApiController.CreatedAtAction.html#C1_Web_Api_C1ApiController_CreatedAtAction_System_String_System_String_System_Object_System_Object_">CreatedAtAction(string, string, object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a Microsoft.AspNetCore.Mvc.CreatedAtActionResult object that produces
a Created (201) response.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_CreatedAtRoute_System_String_System_Object_System_Object_" data-uid="C1.Web.Api.C1ApiController.CreatedAtRoute(System.String,System.Object,System.Object)">
          <a class="xref" href="C1.Web.Api.C1ApiController.CreatedAtRoute.html#C1_Web_Api_C1ApiController_CreatedAtRoute_System_String_System_Object_System_Object_">CreatedAtRoute(string, object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a Microsoft.AspNetCore.Mvc.CreatedAtRouteResult object that produces
a Created (201) response.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_File_System_Func_System_IO_Stream__System_String_" data-uid="C1.Web.Api.C1ApiController.File(System.Func{System.IO.Stream},System.String)">
          <a class="xref" href="C1.Web.Api.C1ApiController.File.html#C1_Web_Api_C1ApiController_File_System_Func_System_IO_Stream__System_String_">File(Func&lt;Stream&gt;, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a file in the specified fileStream with the full file name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Location_System_Linq_Expressions_Expression_System_Func_System_Func_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location(System.Linq.Expressions.Expression{System.Func{System.Func{Microsoft.AspNetCore.Mvc.IActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">
          <a class="xref" href="C1.Web.Api.C1ApiController.Location.html#C1_Web_Api_C1ApiController_Location_System_Linq_Expressions_Expression_System_Func_System_Func_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location(Expression&lt;Func&lt;Func&lt;IActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Location_System_Reflection_MethodInfo_System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location(System.Reflection.MethodInfo,System.Collections.Generic.IDictionary{System.String,System.Object})">
          <a class="xref" href="C1.Web.Api.C1ApiController.Location.html#C1_Web_Api_C1ApiController_Location_System_Reflection_MethodInfo_System_Collections_Generic_IDictionary_System_String_System_Object__">Location(MethodInfo, IDictionary&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Location_System_String_System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location(System.String,System.Collections.Generic.IDictionary{System.String,System.Object})">
          <a class="xref" href="C1.Web.Api.C1ApiController.Location.html#C1_Web_Api_C1ApiController_Location_System_String_System_Collections_Generic_IDictionary_System_String_System_Object__">Location(string, IDictionary&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Location__1_System_Linq_Expressions_Expression_System_Func_System_Func___0_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``1(System.Linq.Expressions.Expression{System.Func{System.Func{``0,Microsoft.AspNetCore.Mvc.IActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">
          <a class="xref" href="C1.Web.Api.C1ApiController.Location.html#C1_Web_Api_C1ApiController_Location__1_System_Linq_Expressions_Expression_System_Func_System_Func___0_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location&lt;T1&gt;(Expression&lt;Func&lt;Func&lt;T1, IActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Location__2_System_Linq_Expressions_Expression_System_Func_System_Func___0___1_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``2(System.Linq.Expressions.Expression{System.Func{System.Func{``0,``1,Microsoft.AspNetCore.Mvc.IActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">
          <a class="xref" href="C1.Web.Api.C1ApiController.Location.html#C1_Web_Api_C1ApiController_Location__2_System_Linq_Expressions_Expression_System_Func_System_Func___0___1_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location&lt;T1, T2&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, IActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Location__3_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``3(System.Linq.Expressions.Expression{System.Func{System.Func{``0,``1,``2,Microsoft.AspNetCore.Mvc.IActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">
          <a class="xref" href="C1.Web.Api.C1ApiController.Location.html#C1_Web_Api_C1ApiController_Location__3_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location&lt;T1, T2, T3&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, IActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Location__4_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2___3_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``4(System.Linq.Expressions.Expression{System.Func{System.Func{``0,``1,``2,``3,Microsoft.AspNetCore.Mvc.IActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">
          <a class="xref" href="C1.Web.Api.C1ApiController.Location.html#C1_Web_Api_C1ApiController_Location__4_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2___3_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location&lt;T1, T2, T3, T4&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, T4, IActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Location__5_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2___3___4_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location``5(System.Linq.Expressions.Expression{System.Func{System.Func{``0,``1,``2,``3,``4,Microsoft.AspNetCore.Mvc.IActionResult}}},System.Collections.Generic.IDictionary{System.String,System.Object})">
          <a class="xref" href="C1.Web.Api.C1ApiController.Location.html#C1_Web_Api_C1ApiController_Location__5_System_Linq_Expressions_Expression_System_Func_System_Func___0___1___2___3___4_Microsoft_AspNetCore_Mvc_IActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location&lt;T1, T2, T3, T4, T5&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, T4, T5, IActionResult&gt;&gt;&gt;, IDictionary&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an absolute url for the specified action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_NotFound_System_Object_" data-uid="C1.Web.Api.C1ApiController.NotFound(System.Object)">
          <a class="xref" href="C1.Web.Api.C1ApiController.NotFound.html#C1_Web_Api_C1ApiController_NotFound_System_Object_">NotFound(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an Microsoft.AspNetCore.Mvc.NotFoundObjectResult that produces a Not
Found (404) response.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Ok_System_Object_" data-uid="C1.Web.Api.C1ApiController.Ok(System.Object)">
          <a class="xref" href="C1.Web.Api.C1ApiController.Ok.html#C1_Web_Api_C1ApiController_Ok_System_Object_">Ok(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an Microsoft.AspNetCore.Mvc.OkObjectResult object that produces an OK
(200) response.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_SetJsonSettings_Newtonsoft_Json_JsonSerializerSettings_" data-uid="C1.Web.Api.C1ApiController.SetJsonSettings(Newtonsoft.Json.JsonSerializerSettings)">
          <a class="xref" href="C1.Web.Api.C1ApiController.SetJsonSettings.html#C1_Web_Api_C1ApiController_SetJsonSettings_Newtonsoft_Json_JsonSerializerSettings_">SetJsonSettings(JsonSerializerSettings)</a>
        </td>
        <td class="markdown level1 summary"><p>Set Json formatter serializer settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_StatusCode_System_Int32_System_Object_" data-uid="C1.Web.Api.C1ApiController.StatusCode(System.Int32,System.Object)">
          <a class="xref" href="C1.Web.Api.C1ApiController.StatusCode.html#C1_Web_Api_C1ApiController_StatusCode_System_Int32_System_Object_">StatusCode(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a Microsoft.AspNetCore.Mvc.ObjectResult object by specifying a statusCode
and value</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
