private void Vote(HttpRequestPost post, string cryptographic, HttpRequestGet get, string artistId) { var resPost = post.Vote(cryptographic, CurrentBattle.id.ToString(), artistId, Singleton.Singleton.Instance().CurrentUser.id.ToString()); resPost.ContinueWith(delegate(Task<string> tmp) { var test = tmp.Result; if (test != null) { CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { var resGet = get.GetObject(new Battle(), "battles", CurrentBattle.id.ToString()); resGet.ContinueWith( delegate(Task<object> newBattle) { CurrentBattle = newBattle.Result as Battle; }); InitializeData(); }); } }); }