public UserDetailsPageViewModel(INavigationService navigationService) : base(navigationService) { restService = new RestService(); IsVisible = new UserDetailsPageVisibility() { ActivityIndicator = true, UserData = false, SomethingWentWrong = false }; }
private async void FillData(int Id) { var result = await restService.GetUserDetails(Id); UserData = result; IsVisible = new UserDetailsPageVisibility() { ActivityIndicator = false, UserData = UserData.Id != 0, SomethingWentWrong = UserData.Id == 0 }; }