finalizare 1.0
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user