private void UpdateUserProfile() { if (Favorite.Value.HasValue == false) { return; } if (Favorite.Value.Value) { QlikViewApi.AddFavorite(UserName, Name.Value); } else { QlikViewApi.RemoveFavorite(UserName, Name.Value); } }
private User LoadUserProfile() { var userProfile = QlikViewApi.GetUserProfile(Environment.UserName); return(new User(userProfile.Name, userProfile.Favorites)); }