private void ButtonSave_Click(object sender, RoutedEventArgs e) { var todoItem = new Prizes { Text = TextInput.Text }; InsertTodoItem(todoItem); }
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); }