# 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"><span class="xref">C1ApiController</span></div>
      <div class="level2"><a class="xref" href="../C1.Web.Api.DataEngine/C1.Web.Api.DataEngine.DataEngineController.html">DataEngineController</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.Web.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 : ApiController</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1ApiController
    Inherits ApiController</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_Content__1_System_Net_HttpStatusCode___0_" data-uid="C1.Web.Api.C1ApiController.Content``1(System.Net.HttpStatusCode,``0)">
          <a class="xref" href="C1.Web.Api.C1ApiController.Content.html#C1_Web_Api_C1ApiController_Content__1_System_Net_HttpStatusCode___0_">Content&lt;T&gt;(HttpStatusCode, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <span class="xref">System.Web.Http.NegotiatedContentResult`1</span> with the specified values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_CreatedAtRoute__1_System_String_System_Collections_Generic_IDictionary_System_String_System_Object____0_" data-uid="C1.Web.Api.C1ApiController.CreatedAtRoute``1(System.String,System.Collections.Generic.IDictionary{System.String,System.Object},``0)">
          <a class="xref" href="C1.Web.Api.C1ApiController.CreatedAtRoute.html#C1_Web_Api_C1ApiController_CreatedAtRoute__1_System_String_System_Collections_Generic_IDictionary_System_String_System_Object____0_">CreatedAtRoute&lt;T&gt;(string, IDictionary&lt;string, object&gt;, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a System.Web.Http.Results.CreatedAtRouteNegotiatedContentResult`1 (201 Created) with the specified values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Created__1_System_Uri___0_" data-uid="C1.Web.Api.C1ApiController.Created``1(System.Uri,``0)">
          <a class="xref" href="C1.Web.Api.C1ApiController.Created.html#C1_Web_Api_C1ApiController_Created__1_System_Uri___0_">Created&lt;T&gt;(Uri, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a System.Web.Http.Results.CreatedNegotiatedContentResult`1 (201 Created) with the specified values.</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_Json__1___0_Newtonsoft_Json_JsonSerializerSettings_System_Text_Encoding_" data-uid="C1.Web.Api.C1ApiController.Json``1(``0,Newtonsoft.Json.JsonSerializerSettings,System.Text.Encoding)">
          <a class="xref" href="C1.Web.Api.C1ApiController.Json.html#C1_Web_Api_C1ApiController_Json__1___0_Newtonsoft_Json_JsonSerializerSettings_System_Text_Encoding_">Json&lt;T&gt;(T, JsonSerializerSettings, Encoding)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a System.Web.Http.Results.JsonResult`1 (200 OK) with the specified values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_C1ApiController_Location_System_Linq_Expressions_Expression_System_Func_System_Func_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Api.C1ApiController.Location(System.Linq.Expressions.Expression{System.Func{System.Func{System.Web.Http.IHttpActionResult}}},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_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location(Expression&lt;Func&lt;Func&lt;IHttpActionResult&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_System_Web_Http_IHttpActionResult____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,System.Web.Http.IHttpActionResult}}},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_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location&lt;T1&gt;(Expression&lt;Func&lt;Func&lt;T1, IHttpActionResult&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_System_Web_Http_IHttpActionResult____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,System.Web.Http.IHttpActionResult}}},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_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location&lt;T1, T2&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, IHttpActionResult&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_System_Web_Http_IHttpActionResult____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,System.Web.Http.IHttpActionResult}}},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_System_Web_Http_IHttpActionResult____System_Collections_Generic_IDictionary_System_String_System_Object__">Location&lt;T1, T2, T3&gt;(Expression&lt;Func&lt;Func&lt;T1, T2, T3, IHttpActionResult&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_System_Web_Http_IHttpActionResult____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,System.Web.Http.IHttpActionResult}}},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_System_Web_Http_IHttpActionResult____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, IHttpActionResult&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_System_Web_Http_IHttpActionResult____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,System.Web.Http.IHttpActionResult}}},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_System_Web_Http_IHttpActionResult____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, IHttpActionResult&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_Ok__1___0_" data-uid="C1.Web.Api.C1ApiController.Ok``1(``0)">
          <a class="xref" href="C1.Web.Api.C1ApiController.Ok.html#C1_Web_Api_C1ApiController_Ok__1___0_">Ok&lt;T&gt;(T)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an System.Web.Http.Results.OkNegotiatedContentResult`1 with the specified values.</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>
    </tbody>
  </table>

</div>
