hrms-api-backend/BMA.EHR.Application/Common/Interfaces/IGenericRepository.cs
Suphonchai Phoonsawat 89de09d213 จัดระเบียบ Code ใหม่ และเพิ่ม Extension Method
implement GenericRepository Class ใหม่
2023-06-26 10:15:50 +07:00

12 lines
267 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();
}
}