Пример #1
0
        public async Task <ActionResult> Restore([Required] List <Guid> ids, CancellationToken ct = default)
        {
            var suppliers = await _suppliersService.GetListAsync(ids, ct);

            return(await ActionIfAllowed(
                       () => _suppliersService.RestoreAsync(_userContext.UserId, suppliers.Select(x => x.Id), ct),
                       Roles.Suppliers,
                       suppliers.Select(x => x.AccountId)));
        }