コード例 #1
0
        private async void Page_Loaded(object sender, RoutedEventArgs e)
        {
            var carTypes = await _carTypesAppService.GetTypesListDtos();

            LoadParkArea();
            _entranceViewModel.CarTypesLists = new System.Collections.ObjectModel.ObservableCollection <CarTypeses.Dtos.CarTypesListDto>(carTypes);
            //_entranceViewModel.EntrancesListDtos = new System.Collections.ObjectModel.ObservableCollection<ParkEntranceses.Dtos.ParkEntrancesListDto>(parkEntrance);


            var parkAea = await _parkAreasAppService.GetParkAreaDtos(_mainWindowViewModel.SelectParkDto.Id);

            _entranceViewModel.ParkAreaDtos = new System.Collections.ObjectModel.ObservableCollection <ParkAreases.Dtos.ParkAreaDto>(parkAea);

            _entranceViewModel.SelectDto = new ParkEntrancesListDto();
            _entranceViewModel.SelectDto.ParkEntrancePermission = new ParkEntrancePermissions.Dtos.ParkEntrancePermissionListDto();
        }
コード例 #2
0
ファイル: CarPortAppService.cs プロジェクト: lianying/Park
 public async Task <List <CarTypesListDto> > GetCarTypes()
 {
     return(await _carTypesAppService.GetTypesListDtos());
 }