public HttpResponseMessage DeleteNEASharingRatioFcy(HttpRequestMessage request, [FromBody] int nEASharingRatioFcyId) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; // not that calling the WCF service here will authenticate access to the data NEASharingRatioFcy nEASharingRatioFcy = _MPROPEXService.GetNEASharingRatioFcy(nEASharingRatioFcyId); if (nEASharingRatioFcy != null) { _MPROPEXService.DeleteNEASharingRatioFcy(nEASharingRatioFcyId); response = request.CreateResponse(HttpStatusCode.OK); } else { response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No Opex Business Rule found under that ID."); } return response; })); }