Azure – Mobile Service

Insert Item to Azure – Table

private async System.Threading.Tasks.Task InsertTodoItem()
{
  IMobileServiceTable<TodoItem> todoTable = App.TaskMasterDemoClient.GetTable<TodoItem>();
  
  TodoItem t = new TodoItem();
  t.Title = titleTextBox.Text;
  t.Description = descriptionTextBox.Text;
  t.DueDAte = dueDatePicker.Date.ToString();
  t.AssignedTo = assignedToTextBox.Text;

  try
  {
    await todoTable.InsertAsync(t);
  }
  catch(Exception)
  {
    // Handle exception
  }
}