Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var client = new FoodleServiceClient();

            var result = client.GetVoteOptions();

            var vote = new Vote
                {
                    Prio1 = result.Restaurants[0],
                    Prio2 = result.Restaurants[1],
                    Prio3 = result.Restaurants[2]
                };

            var submitted = client.SubmitVote(vote);

            var res = client.GetResults();

            Console.WriteLine();
        }
Exemplo n.º 2
0
        private void GetRestaurantsButton_Click(object sender, RoutedEventArgs e)
        {
            using (var client = new FoodleServiceClient())
            {
                var response = client.GetVoteOptions();
                _voteOptions = response.Options;
            }

            ShowRestaurants();
        }