Example #1
0
        public async Task <ActionResult <SupplierGetPagedListResponse> > GetPagedList(
            SupplierGetPagedListRequest request,
            CancellationToken ct = default)
        {
            var response = await _suppliersService.GetPagedListAsync(_userContext.AccountId, request, ct);

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