Ejemplo n.º 1
0
        public override async Task OnAppearingAsync()
        {
            await _layerService.InitializeData();

            var zones = await _zoneService.GetAllZoneContractsAsync();

            ZonesList.Clear();
            foreach (var zone in zones)
            {
                var zoneUsers = _layerService.UsersInsideZone(zone.ZoneID);
                ZonesList.Add(new ZoneViewModel(zone, zoneUsers));
            }
            IsBusy = false;
        }
        public override async Task OnAppearingAsync()
        {
            await _zoneService.InitializeData();

            ZonesList.Clear();
            var zones = await _zoneService.GetAllZoneContractsAsync();

            foreach (var zone in zones)
            {
                ZonesList.Add(new ZoneViewModel(zone));
            }

            var profile = await _requestService.GetAsync <UserInfoContract>("api/UserInfoSelf");

            UserProfile = new ProfileViewModel()
            {
                UserInfo = profile
            };

            IsBusy = false;
        }