public HttpResponseMessage Deleterevenue(HttpRequestMessage request, [FromBody] int Id) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; // not that calling the WCF service here will authenticate access to the data IncomeAdjustmentCommFeeSearchManual cf = _MPRPLService.GetCommFeeManual(Id); if (cf != null) { _MPRPLService.DeleteCommFeeManual(Id); response = request.CreateResponse(HttpStatusCode.OK); } else { response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No commfee manual found under that ID."); } return response; })); }