public async Task OnGetAsync() { CagegoryLookupList.AddRange( (await _companyAppService.GetCagegoryLookupAsync(new LookupRequestDto { MaxResultCount = LimitedResultRequestDto.MaxMaxResultCount })).Items .Select(t => new SelectListItem(t.DisplayName, t.Id.ToString())) .ToList()); await Task.CompletedTask; }
public async Task OnGetAsync() { var companyWithNavigationPropertiesDto = await _companyAppService.GetWithNavigationPropertiesAsync(Id); Company = ObjectMapper.Map <CompanyDto, CompanyUpdateDto>(companyWithNavigationPropertiesDto.Company); CagegoryLookupList.AddRange( (await _companyAppService.GetCagegoryLookupAsync(new LookupRequestDto { MaxResultCount = LimitedResultRequestDto.MaxMaxResultCount })).Items .Select(t => new SelectListItem(t.DisplayName, t.Id.ToString())) .ToList()); }