using SurveyLib.Core.Models; namespace SurveyLib.Core.Repositories; public interface IGenericRepository where T : class { Task GetByIdAsync(int id); Task GetByIdAsNoTrackingAsync(int id); Task> GetAllAsync(); Task AddAsync(T entity); Task UpdateAsync(T entity); Task DeleteAsync(int id); }