public SimpleResponse <bool> Any(CategoryDeleteRequest request)
        {
            if (Validator != null)
            {
                Validator.ValidateAndThrow(new Category {
                    CategoryId = request.CategoryId
                }, ApplyTo.Delete);
            }

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

            OnAfterCategoryDeleteRequest(request, output);
            if (!output.Result)
            {
                throw new HttpError(HttpStatusCode.NotFound, "NullReferenceException", "Category matching [CategoryId = {0}]  does not exist".Fmt(request.CategoryId));
            }
            return(output);
        }
 partial void OnAfterCategoryDeleteRequest(CategoryDeleteRequest request, SimpleResponse <bool> deleted);
 partial void OnBeforeCategoryDeleteRequest(CategoryDeleteRequest request);