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

                // not that calling the WCF service here will authenticate access to the data
                StaffCost staffCost = _MPROPEXService.GetStaffCost(staffCostId);

                if (staffCost != null)
                {
                    _MPROPEXService.DeleteStaffCost(staffCostId);

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

                return response;
            }));
        }