This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2023_Kanban/NG_2023_Kanban.DataLayer/Interfaces/IRepository.cs
2023-05-21 18:36:49 +03:00

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);
}
}