20 lines
615 B
C#
20 lines
615 B
C#
using Domain.Entities;
|
|
|
|
namespace Application.Services.Database.PostgreSQL;
|
|
|
|
public interface IPatientRepository
|
|
{
|
|
Task AddAsync(Patient patient, CancellationToken token);
|
|
|
|
Task<Patient?> GetByIdAsync(Guid id, CancellationToken token);
|
|
|
|
Task<Patient?> FindByEmailAsync(string email, CancellationToken token);
|
|
|
|
Task<bool> CredentialsMatch(string email, string password, CancellationToken token);
|
|
|
|
Task UpdateAsync(Patient patient, CancellationToken token);
|
|
|
|
Task DeleteAsync(Patient patient, CancellationToken token);
|
|
|
|
Task<IEnumerable<Patient>> GetAllAsync(CancellationToken token);
|
|
} |