Ejemplo n.º 1
0
        public async Task <ActionResult> Restore([Required] List <Guid> ids, CancellationToken ct = default)
        {
            var attributes = await _userCategoriesService.GetListAsync(ids, ct);

            return(await ActionIfAllowed(
                       () => _userCategoriesService.RestoreAsync(_userContext.UserId, attributes.Select(x => x.Id), ct),
                       Roles.Products,
                       attributes.Select(x => x.AccountId)));
        }