// Repositories/IGenericRepository.cs using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; namespace BelegeingangDatabase.Repositories { public interface IGenericRepository where T : class { Task> GetAllAsync(); Task> FindAsync(Expression> predicate); Task GetByIdAsync(int id); Task AddAsync(T entity); void Update(T entity); void Remove(T entity); } }