Пример #1
0
 public HttpResponseMessage CreateResponse <T>(ApiController controller, HttpStatusCode statusCode,
                                               T value)
 {
     return(controller.Request.CreateResponse(statusCode, value));
 }
Пример #2
0
 public HttpResponseMessage CreateErrorResponse(ApiController controller, HttpStatusCode statusCode,
                                                ModelStateDictionary modelState)
 {
     return(controller.Request.CreateResponse(statusCode, modelState));
 }