Пример #1
0
        public async Task OnGetAsync()
        {
            var user = await userManager.GetUserAsync(User);

            var varosok = await settlementService.GetUserSettlementsAsync(user.Id);

            SelectedSettlements.AddRange(mapper.Map <List <SelectViewModel> >(varosok));
            SelectedIds.AddRange(varosok.Select(v => v.Id));
        }