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