public HttpResponseMessage Deleteoffbalancesheetexposure(HttpRequestMessage request, [FromBody] int obeId) { return(GetHttpResponse(request, () => { HttpResponseMessage response = null; // not that calling the WCF service here will authenticate access to the data OffBalanceSheetExposure offbalancesheetexposure = _IFRSDataService.GetOffBalanceSheetExposure(obeId); if (offbalancesheetexposure != null) { _IFRSDataService.DeleteOffBalanceSheetExposure(obeId); response = request.CreateResponse(HttpStatusCode.OK); } else { response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No Of BalancesheetExposure found under that ID."); } return response; })); }