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

            return(await ActionIfAllowed(
                       () => _orderStatusesService.DeleteAsync(_userContext.UserId, attributes.Select(x => x.Id), ct),
                       Roles.Orders,
                       attributes.Select(x => x.AccountId)));
        }