Having the clear locations endpoint only clear world locations, and adding endpoint to remove all items
This commit is contained in:
@@ -29,6 +29,11 @@ public class PlayerService
|
||||
public virtual async Task<Player> GetByIdAsync(string id) =>
|
||||
await _players.Find(p => p.Id == id).FirstOrDefaultAsync();
|
||||
|
||||
public virtual async Task<List<Player>> GetAllAsync()
|
||||
{
|
||||
return await _players.Find(_ => true).ToListAsync();
|
||||
}
|
||||
|
||||
public virtual async Task CreateAsync(Player player) =>
|
||||
await _players.InsertOneAsync(player);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user