private void LikeCommandExecute() { if (!TheConcert.hasLiked) { Like = bmLike; ValidateKey.GetValideKey(); var post = new HttpRequestPost(); var res = post.SetLike("Concerts", Singleton.Singleton.Instance().SecureKey, Singleton.Singleton.Instance().CurrentUser.id.ToString(), TheConcert.id.ToString()); res.ContinueWith(delegate(Task<string> tmp2) { var result = tmp2.Result; if (result != null) { CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, UpdateConcert); } }); } else { Like = bmDislike; ValidateKey.GetValideKey(); var get = new HttpRequestGet(); var res = get.DestroyLike("Concerts", TheConcert.id.ToString(), Singleton.Singleton.Instance().SecureKey, Singleton.Singleton.Instance().CurrentUser.id.ToString()); res.ContinueWith(delegate(Task<string> tmp2) { var result = tmp2; if (result != null) { CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, UpdateConcert); } }); } }