public HttpResponseMessage DeleteGLReclassification(HttpRequestMessage request, [FromBody] int glReclassificationId) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; // not that calling the WCF service here will authenticate access to the data GLReclassification glReclassification = _MPRPLService.GetGLReclassification(glReclassificationId); if (glReclassification != null) { _MPRPLService.DeleteGLReclassification(glReclassificationId); response = request.CreateResponse(HttpStatusCode.OK); } else { response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No glReclassification found under that ID."); } return response; })); }