/// <summary> /// Gets all pending task async. /// </summary> /// <returns>The all pending task async.</returns> public async Task <IList <TodoItem> > GetAllPendingTaskAsync() { IList <TodoItem> items = null; try { items = await _repo.GetAllPendingTaskAsync(); } catch (Exception ex) { Debug.WriteLine(ex); } return(items); }