19 lines
385 B
C#
19 lines
385 B
C#
using BMA.EHR.Domain.Common;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace BMA.EHR.Application.Common.Interfaces
|
|
{
|
|
public interface IGenericRepository<S, T> where T : class
|
|
{
|
|
Task<T?> GetByIdAsync(S id);
|
|
|
|
Task<IReadOnlyList<T>> GetAllAsync();
|
|
|
|
Task<T> AddAsync(T entity);
|
|
|
|
Task<T> UpdateAsync(T entity);
|
|
|
|
Task DeleteAsync(T entity);
|
|
|
|
}
|
|
}
|