initial commit
This commit is contained in:
10
DAL/IRepository.cs
Normal file
10
DAL/IRepository.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace DAL;
|
||||
|
||||
public interface IRepository<T>
|
||||
{
|
||||
Task<T> Get(int id, int cacheLifetime, CancellationToken token);
|
||||
Task<List<T>> GetAll(int cacheLifeTime, CancellationToken token);
|
||||
Task Delete(int id, CancellationToken token);
|
||||
Task Update(T entity, int cacheLifetime, CancellationToken token);
|
||||
Task Create(T entity, int cacheLifeTime, CancellationToken token);
|
||||
}
|
||||
Reference in New Issue
Block a user