public HttpResponseMessage DeleteCollateralCategory(HttpRequestMessage request, [FromBody] int collateralCategoryId)
        {
            return(GetHttpResponse(request, () =>
            {
                HttpResponseMessage response = null;

                // not that calling the WCF service here will authenticate access to the data
                CollateralCategory collateralCategory = _LoanService.GetCollateralCategory(collateralCategoryId);

                if (collateralCategory != null)
                {
                    _LoanService.DeleteCollateralCategory(collateralCategoryId);

                    response = request.CreateResponse(HttpStatusCode.OK);
                }
                else
                {
                    response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No collateralCategory found under that ID.");
                }

                return response;
            }));
        }