예제 #1
0
        private void ButtonSave_Click(object sender, RoutedEventArgs e)
        {
            var todoItem = new Prizes {
                Text = TextInput.Text
            };

            InsertTodoItem(todoItem);
        }
예제 #2
0
 private async void InsertTodoItem(Prizes todoItem)
 {
     // This code inserts a new Prize into the database. The Insert script on the Mobile Services back end will send a new message to the Service Bus queue.
     await prizesTable.InsertAsync(todoItem);
 }