protected ResourceResponseBase(HttpStatusCode httpStatusCode, IApiResource resource)
     : base(httpStatusCode)
 {
     var location = new ResourceLocation();
     resource.SetLocation(location);
     Headers.Location = location.Location;
 }
Example #2
0
 public CreateResponse(IApiResource resource)
     : base(HttpStatusCode.Created, resource)
 {
 }
Example #3
0
 public ConflictResponse(IApiResource apiResource)
     : base(HttpStatusCode.Conflict, apiResource)
 {
 }
Example #4
0
 public NotModifiedResponse(IApiResource resource)
     : base(HttpStatusCode.NotModified, resource)
 {
 }