11 lines
221 B
C#
11 lines
221 B
C#
using BMA.EHR.Domain.Common;
|
|
|
|
namespace BMA.EHR.Application.Common.Interfaces
|
|
{
|
|
public interface IGenericRepository<S,T> where T : class
|
|
{
|
|
Task<T?> GetByIdAsync(S id);
|
|
|
|
Task<IReadOnlyList<T>> GetAllAsync();
|
|
}
|
|
}
|