public SimpleResponse <bool> Any(CustomerDemographicDeleteRequest request)
        {
            if (Validator != null)
            {
                Validator.ValidateAndThrow(new CustomerDemographic {
                    CustomerTypeId = request.CustomerTypeId
                }, ApplyTo.Delete);
            }

            OnBeforeCustomerDemographicDeleteRequest(request);
            var output = Repository.Delete(request);

            OnAfterCustomerDemographicDeleteRequest(request, output);
            if (!output.Result)
            {
                throw new HttpError(HttpStatusCode.NotFound, "NullReferenceException", "CustomerDemographic matching [CustomerTypeId = {0}]  does not exist".Fmt(request.CustomerTypeId));
            }
            return(output);
        }
 partial void OnAfterCustomerDemographicDeleteRequest(CustomerDemographicDeleteRequest request, SimpleResponse <bool> deleted);
 partial void OnBeforeCustomerDemographicDeleteRequest(CustomerDemographicDeleteRequest request);