Esempio n. 1
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());
        }