Exemple #1
0
 public async Task UpdateItemAsync(Item item)
 {
     await TodoDBRepository <Item> .UpdateItemAsync(item.id, item);
 }
Exemple #2
0
 public async Task RemoveItemAsync(string id, string category)
 {
     await TodoDBRepository <Item> .RemoveItemAsync(id, category);
 }
Exemple #3
0
        public async Task <Item> GetItemByIdAsync(string id)
        {
            var output = await TodoDBRepository <Item> .GetItemByIdAsync(id);

            return(output);
        }
Exemple #4
0
 public async Task CreateItemAsync(Item item)
 {
     await TodoDBRepository <Item> .AddItemAsync(item);
 }
Exemple #5
0
        public async Task <IEnumerable <Item> > GetAllItemAsync()
        {
            var output = await TodoDBRepository <Item> .GetItemsAsync(i => !i.isComplete);

            return(output);
        }