namespace Models.Interfaces { public interface IGenericRepository where T : class { Task GetByIdAsync(int id); Task> GetAllAsync(); Task AddAsync(T entity); void Update(T entity); void Delete(T entity); } }