C# Class Halcyon.WebApi.HAL.HALResponseExtensions

Mostrar archivo Open project: visualeyes/halcyon

Public Methods

Method Description
AddSelfLink ( this response, HttpRequestMessage request ) : HALResponse
AddSelfLinkIfNotExists ( this response, HttpRequestMessage request ) : HALResponse
ToActionResult ( this model, ApiController controller, HttpStatusCode statusCode = HttpStatusCode.OK ) : IHttpActionResult

Method Details

AddSelfLink() public static method

public static AddSelfLink ( this response, HttpRequestMessage request ) : HALResponse
response this
request System.Net.Http.HttpRequestMessage
return Halcyon.HAL.HALResponse

AddSelfLinkIfNotExists() public static method

public static AddSelfLinkIfNotExists ( this response, HttpRequestMessage request ) : HALResponse
response this
request System.Net.Http.HttpRequestMessage
return Halcyon.HAL.HALResponse

ToActionResult() public static method

public static ToActionResult ( this model, ApiController controller, HttpStatusCode statusCode = HttpStatusCode.OK ) : IHttpActionResult
model this
controller ApiController
statusCode HttpStatusCode
return IHttpActionResult