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

                // not that calling the WCF service here will authenticate access to the data
                IncomeProductstableUnit ipt = _MPRIncomeService.GetIncomeProductstableUnit(iptUnitId);

                if (ipt != null)
                {
                    _MPRIncomeService.DeleteIncomeProductstableUnit(iptUnitId);

                    response = request.CreateResponse(HttpStatusCode.OK);
                }
                else
                {
                    response = request.CreateErrorResponse(HttpStatusCode.NotFound, "No IncomeProduct found under the Id.");
                }

                return response;
            }));
        }