10 lines
No EOL
266 B
C#
10 lines
No EOL
266 B
C#
namespace SurveyLib.Core.Repositories;
|
|
|
|
public interface IGenericRepository<T> where T : class
|
|
{
|
|
Task<T>? GetByIdAsync(int id);
|
|
Task<IEnumerable<T>> GetAllAsync();
|
|
Task AddAsync(T entity);
|
|
Task UpdateAsync(T entity);
|
|
Task DeleteAsync(T entity);
|
|
} |