Adding ability to update and delete items
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user