mirror of
https://github.com/ryzij/ServerMonitor.git
synced 2026-07-14 03:46:58 +00:00
Add MonitorPanel.DataAccess
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using MonitorPanel.Core.Models;
|
||||
namespace MonitorPanel.Core.Abstractions;
|
||||
|
||||
public interface IServersRepository
|
||||
{
|
||||
Task<IEnumerable<Server>> GetAllServersAsync();
|
||||
Task<Server?> GetServerByIdAsync(Guid id);
|
||||
Task AddServerAsync(Server server);
|
||||
Task UpdateServerAsync(Guid id, Server server);
|
||||
Task DeleteServerAsync(Guid id);
|
||||
}
|
||||
Reference in New Issue
Block a user