13 lines
410 B
C#
13 lines
410 B
C#
namespace NG_2023_Kanban.DataLayer.Interfaces
|
|
{
|
|
public interface IRepository<T> where T : class
|
|
{
|
|
Task<ICollection<T>> GetAllAsync();
|
|
Task<T> GetAsync(int id);
|
|
Task<ICollection<T>> FindAsync(Func<T, Boolean> predicate);
|
|
Task CreateAsync(T entity);
|
|
Task UpdateAsync(int id, T entity);
|
|
Task DeleteAsync(int id);
|
|
Task DeleteAsync(T entity);
|
|
}
|
|
}
|