public HttpResponseMessage DeleteClassification(HttpRequestMessage request, [FromBody] int classificationId) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; // not that calling the WCF service here will authenticate access to the data SCDKPIClassification classification = _ScorecardService.GetSCDKPIClassification(classificationId); if (classification != null) { _ScorecardService.DeleteSCDKPIClassification(classificationId); response = request.CreateResponse(HttpStatusCode.OK); } else { response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No classification found under that ID."); } return response; })); }