[]
        
(Showing Draft Content)

C1.Web.Api.C1ApiController

C1ApiController Class

Defines the base class for the api controller.

Namespace: C1.Web.Api
Assembly: C1.AspNetCore.Api.dll
Syntax
public abstract class C1ApiController : Controller, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable

Constructors

Name Description
C1ApiController()

Properties

Name Description
Formatters

Gets the media-type formatters for this instance.

Methods

Name Description
BadRequest(ModelStateDictionary)

Creates an Microsoft.AspNetCore.Mvc.BadRequestObjectResult that produces a Bad Request (400) response.

BadRequest(object)

Creates an Microsoft.AspNetCore.Mvc.BadRequestObjectResult that produces a Bad Request (400) response.

Created(string, object)

Creates a Microsoft.AspNetCore.Mvc.CreatedResult object that produces a Created (201) response.

Created(Uri, object)

Creates a Microsoft.AspNetCore.Mvc.CreatedResult object that produces a Created (201) response.

CreatedAtAction(string, string, object, object)

Creates a Microsoft.AspNetCore.Mvc.CreatedAtActionResult object that produces a Created (201) response.

CreatedAtRoute(string, object, object)

Creates a Microsoft.AspNetCore.Mvc.CreatedAtRouteResult object that produces a Created (201) response.

File(Func<Stream>, string)

Returns a file in the specified fileStream with the full file name.

Location(Expression<Func<Func<IActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Location(MethodInfo, IDictionary<string, object>)

Returns an absolute url for the specified action.

Location(string, IDictionary<string, object>)

Returns an absolute url for the specified action.

Location<T1>(Expression<Func<Func<T1, IActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Location<T1, T2>(Expression<Func<Func<T1, T2, IActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Location<T1, T2, T3>(Expression<Func<Func<T1, T2, T3, IActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Location<T1, T2, T3, T4>(Expression<Func<Func<T1, T2, T3, T4, IActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Location<T1, T2, T3, T4, T5>(Expression<Func<Func<T1, T2, T3, T4, T5, IActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

NotFound(object)

Creates an Microsoft.AspNetCore.Mvc.NotFoundObjectResult that produces a Not Found (404) response.

Ok(object)

Creates an Microsoft.AspNetCore.Mvc.OkObjectResult object that produces an OK (200) response.

SetJsonSettings(JsonSerializerSettings)

Set Json formatter serializer settings.

StatusCode(int, object)

Creates a Microsoft.AspNetCore.Mvc.ObjectResult object by specifying a statusCode and value