public CategoryResponse Any(CategoryAddRequest request)
        {
            if (Validator != null)
            {
                Validator.ValidateAndThrow(request, ApplyTo.Post);
            }

            OnBeforeCategoryAddRequest(request);
            var filesInBytes  = base.GetFilesInBytes();
            var filesUploaded = filesInBytes.Count;
            var fidx          = 0;

            if (filesUploaded > 0)
            {
                if (!string.IsNullOrEmpty(request.PictureSrcPath))
                {
                    request.Picture = filesInBytes[fidx];
                    fidx++;
                }
            }

            var output = Repository.Create(request);

            OnAfterCategoryAddRequest(request, output);
            return(output);
        }
 partial void OnAfterCategoryAddRequest(CategoryAddRequest request, CategoryResponse response);
 partial void OnBeforeCategoryAddRequest(CategoryAddRequest request);