public HttpResponseMessage DeletePlacement(HttpRequestMessage request, [FromBody] int Placement_Id) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; // not that calling the WCF service here will authenticate access to the data Placement placement = _IFRSDataService.GetPlacement(Placement_Id); if (placement != null) { _IFRSDataService.DeletePlacement(Placement_Id); response = request.CreateResponse(HttpStatusCode.OK); } else { response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No placement found under that ID."); } return response; })); }