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))); }