title: c# Windows Azure Mobile Services insert/read data
body: <p>I'm creating a Windows 8 Store App (c#) using Windows Azure Mobile Services to store my data.
  I can successfully add data to the <strong>Table (ToDoItem)</strong> but got problems with reading it.</p>
  
  <p>To add Data:</p>
  
  <pre><code>public class TodoItem
  {
      public int Id { get; set; }
  
      [DataMember(Name = "text")]
      public string Text { get; set; }
  
      [DataMember(Name = "Private")]
      public bool Private { get; set; }
  
      [DataMember(Name = "FirstTeam")]
      public string Team1 { get; set; }
  
      [DataMember(Name = "SecondTeam")]
      public string Team2 { get; set; }
  }
  
  public sealed partial class ViewItems : Page
  {
  
      private ObservableCollection&lt;TodoItem&gt; items;
      private IMobileServiceTable&lt;TodoItem&gt; todoTable = App.MobileService.GetTable&lt;TodoItem&gt;();
  
      private async void InsertTodoItem(TodoItem todoItem)
      {
          await todoTable.InsertAsync(todoItem);
      }
  
      private void ButtonSave_Click(object sender, RoutedEventArgs e)
      {
          var todoItem = new TodoItem { Text = Ploeg1.Text, Team1 = Ploeg1.Text, Team2 = Ploeg2.Text};
          InsertTodoItem(todoItem);
      }
  }
  </code></pre>
  
  <p>So this piece of code works! Now the problem: I want to read the data from the Mobile Service in <strong>another</strong> blank page:</p>
  
  <pre><code>public class TodoItem
  {
      public int Id { get; set; }
  
      [DataMember(Name = "text")]
      public string Text { get; set; }
  
      [DataMember(Name = "Private")]
      public bool Private { get; set; }
  
      [DataMember(Name = "FirstTeam")]
      public string Team1 { get; set; }
  
      [DataMember(Name = "SecondTeam")]
      public string Team2 { get; set; }
  }
  
  public sealed partial class gamestore : Page
  {
      private ObservableCollection&lt;TodoItem&gt; items;
      private IMobileServiceTable&lt;TodoItem&gt; todoTable = App.MobileService.GetTable&lt;TodoItem&gt;();
  
      private void ButtonRefresh_Click(object sender, RoutedEventArgs e)
      {
         RefreshTodoItems();
      }
  
      private async void RefreshTodoItems()
      {
          var results = await todoTable2
              .Where(todoItem =&gt; todoItem.Private == false)
              .ToListAsync();
  
          items = new ObservableCollection&lt;TodoItem&gt;(results);
          ListItems.ItemsSource = items;
      }
  }
  </code></pre>
  
  <p>I have some Ambiguity errors with this. I know I'm using the same names but those are my column names. How can I make this work so it would be able to read the saved data on another page??</p>