[]
Defines the base class for the api controller.
public abstract class C1ApiController : ApiController
Name | Description |
---|---|
C1ApiController() |
Name | Description |
---|---|
Formatters | Gets the media-type formatters for this instance. |
Name | Description |
---|---|
Content<T>(HttpStatusCode, T) | Creates a System.Web.Http.NegotiatedContentResult`1 with the specified values. |
CreatedAtRoute<T>(string, IDictionary<string, object>, T) | Creates a System.Web.Http.Results.CreatedAtRouteNegotiatedContentResult`1 (201 Created) with the specified values. |
Created<T>(Uri, T) | Creates a System.Web.Http.Results.CreatedNegotiatedContentResult`1 (201 Created) with the specified values. |
File(Func<Stream>, string) | Returns a file in the specified fileStream with the full file name. |
Json<T>(T, JsonSerializerSettings, Encoding) | Creates a System.Web.Http.Results.JsonResult`1 (200 OK) with the specified values. |
Location(Expression<Func<Func<IHttpActionResult>>>, 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, IHttpActionResult>>>, IDictionary<string, object>) | Returns an absolute url for the specified action. |
Location<T1, T2>(Expression<Func<Func<T1, T2, IHttpActionResult>>>, IDictionary<string, object>) | Returns an absolute url for the specified action. |
Location<T1, T2, T3>(Expression<Func<Func<T1, T2, T3, IHttpActionResult>>>, IDictionary<string, object>) | Returns an absolute url for the specified action. |
Location<T1, T2, T3, T4>(Expression<Func<Func<T1, T2, T3, T4, IHttpActionResult>>>, 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, IHttpActionResult>>>, IDictionary<string, object>) | Returns an absolute url for the specified action. |
Ok<T>(T) | Creates an System.Web.Http.Results.OkNegotiatedContentResult`1 with the specified values. |
SetJsonSettings(JsonSerializerSettings) | Set Json formatter serializer settings. |