finalizare 1.0

This commit is contained in:
andrei-mihnea-cerbu
2024-05-21 12:10:53 +03:00
parent f7795f7519
commit 1cc1d34003
11268 changed files with 2102399 additions and 10909 deletions
@@ -1,20 +1,20 @@
using Core.Entities;
using Domain.Entities;
namespace Application.Services.Database.PostgreSQL;
public interface IPatientRepository
{
Task AddAsync(Patient patient);
Task AddAsync(Patient patient, CancellationToken token);
Task<Patient?> GetByIdAsync(Guid id);
Task<Patient?> FindByEmailAsync(string email);
Task<bool> CredentialsMatch(string email, string password);
Task<Patient?> GetByIdAsync(Guid id, CancellationToken token);
Task UpdateAsync(Patient patient);
Task<Patient?> FindByEmailAsync(string email, CancellationToken token);
Task DeleteAsync(Patient patient);
Task<bool> CredentialsMatch(string email, string password, CancellationToken token);
Task<IEnumerable<Patient>> GetAllAsync();
Task UpdateAsync(Patient patient, CancellationToken token);
Task DeleteAsync(Patient patient, CancellationToken token);
Task<IEnumerable<Patient>> GetAllAsync(CancellationToken token);
}