public GetTodoItemAsync ( string id ) : Task |
||
id | string | The ID of the item to get. |
return | Task |
public async Task<TodoItem> GetTodoItemAsync (string id)
{
try {
return await todoTable.LookupAsync (id);
} catch (MobileServiceInvalidOperationException msioe) {
Debug.WriteLine ("INVALID {0}", msioe.Message);
} catch (Exception e) {
Debug.WriteLine ("ERROR {0}", e.Message);
}
return null;
}