Adding ability to update and delete items

This commit is contained in:
hz
2025-06-09 09:49:36 -05:00
parent e1b489dbc8
commit 7aa192d728
4 changed files with 76 additions and 0 deletions
+5
View File
@@ -39,4 +39,9 @@ public class ItemService
{
await _items.ReplaceOneAsync(i => i.Id == item.Id, item);
}
public virtual async Task DeleteAsync(string id)
{
await _items.DeleteOneAsync(i => i.Id == id);
}
}