示例#1
0
        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;
        }
示例#2
0
        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());
        }