18 lines
405 B
C#
18 lines
405 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LSFE.Domain.Contracts
|
|
{
|
|
public interface IGenericRepository<T> where T : class
|
|
{
|
|
Task<T?> GetByIdAsync(int id);
|
|
Task<IEnumerable<T>> GetAllAsync();
|
|
Task AddAsync(T entity);
|
|
void Update(T entity);
|
|
void Delete(T entity);
|
|
}
|
|
}
|