Files
FACULTATE-HEALTHCARE_MANAGER/backend/Application/Services/Database/PostgreSQL/IPatients.cs
T
2024-05-21 12:10:53 +03:00

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);
}