public async Task <ActionResult> Update(ProductCategory category, CancellationToken ct = default)
        {
            var oldCategory = await _userCategoriesService.GetAsync(category.Id, true, ct);

            if (oldCategory == null)
            {
                return(NotFound(category.Id));
            }

            return(await ActionIfAllowed(
                       () => _userCategoriesService.UpdateAsync(_userContext.UserId, oldCategory, category, ct),
                       Roles.Products,
                       oldCategory.AccountId));
        }