18 lines
375 B
C#
18 lines
375 B
C#
using Core.Entities;
|
|
|
|
namespace Application.Services.Database.PostgreSQL;
|
|
|
|
public interface IPatientRepository
|
|
{
|
|
Task AddAsync(Patient patient);
|
|
|
|
Task<Patient?> GetByIdAsync(Guid id);
|
|
|
|
Task<Patient?> FindByEmailAsync(string email);
|
|
|
|
Task UpdateAsync(Patient patient);
|
|
|
|
Task DeleteAsync(Patient patient);
|
|
|
|
Task<IEnumerable<Patient>> GetAllAsync();
|
|
} |