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

            OnBeforeCategoryUpdateRequest(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.Update(request);

            OnAfterCategoryUpdateRequest(request, output);
            return(output);
        }
 partial void OnAfterCategoryUpdateRequest(CategoryUpdateRequest request, CategoryResponse response);
 partial void OnBeforeCategoryUpdateRequest(CategoryUpdateRequest request);