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

            return(ReturnIfAllowed(
                       suppliers,
                       Roles.Suppliers,
                       suppliers.Select(x => x.AccountId)));
        }