public SimpleResponse <bool> Any(OrderDetailDeleteRequest request)
        {
            if (Validator != null)
            {
                Validator.ValidateAndThrow(new OrderDetail {
                    OrderId = request.OrderId, ProductId = request.ProductId
                }, ApplyTo.Delete);
            }

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

            OnAfterOrderDetailDeleteRequest(request, output);
            if (!output.Result)
            {
                throw new HttpError(HttpStatusCode.NotFound, "NullReferenceException", "OrderDetail matching [OrderId = {0}, ProductId = {1}]  does not exist".Fmt(request.OrderId, request.ProductId));
            }
            return(output);
        }
 partial void OnAfterOrderDetailDeleteRequest(OrderDetailDeleteRequest request, SimpleResponse <bool> deleted);
 partial void OnBeforeOrderDetailDeleteRequest(OrderDetailDeleteRequest request);