initial commit

This commit is contained in:
2024-07-14 19:45:34 +07:00
commit d568ec6970
21 changed files with 594 additions and 0 deletions

10
DAL/IRepository.cs Normal file
View 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);
}