2023-06-25 18:36:02 +07:00
|
|
|
|
using BMA.EHR.Domain.Common;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BMA.EHR.Application.Common.Interfaces
|
2023-06-05 20:22:51 +07:00
|
|
|
|
{
|
|
|
|
|
|
public interface IGenericRepository<S,T> where T : class
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<T?> GetByIdAsync(S id);
|
|
|
|
|
|
|
|
|
|
|
|
Task<IReadOnlyList<T>> GetAllAsync();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|