Add project files.
This commit is contained in:
10
Common.Library/Interfaces/IRepository.cs
Normal file
10
Common.Library/Interfaces/IRepository.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Common.Library;
|
||||
|
||||
public interface IRepository<TEntity>
|
||||
{
|
||||
Task<IEnumerable<TEntity>> Get();
|
||||
Task<TEntity?> Get(int id);
|
||||
Task<int> Save(TEntity entity);
|
||||
bool Delete(TEntity entity);
|
||||
Task<bool> DeleteById(int Id);
|
||||
}
|
||||
Reference in New Issue
Block a user