Exemplo n.º 1
0
        public async Task <IPagedResult <LicenseDto> > BrowseAsync(Guid customerId, BrowseLicenses query)
        {
            var licenses = await _licenseRepository.BrowseAsync(customerId, query);

            return(PagedResult <LicenseDto> .From(
                       (PagedResultBase)licenses,
                       _mapper.Map <IEnumerable <License>, IEnumerable <LicenseDto> >(licenses.Items)));
        }
Exemplo n.º 2
0
 public async Task <IActionResult> Get([FromQuery] BrowseLicenses query)
 => Collection(await _licenseService.BrowseAsync(UserId, query));