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,18 +1,17 @@
using Core.Entities;
using Domain.Entities;
namespace Application.Services.Database.PostgreSQL;
public interface IDoctorRepository
{
Task AddAsync(Doctor doctor);
Task AddAsync(Doctor doctor, CancellationToken token);
Task<Doctor?> GetByIdAsync(Guid id, CancellationToken token);
Task<Doctor?> FindByEmailAsync(string email, CancellationToken token);
Task<bool> CredentialsMatch(string email, string password, CancellationToken token);
Task<Doctor?> GetByIdAsync(Guid id);
Task<Doctor?> FindByEmailAsync(string email);
Task<bool> CredentialsMatch(string email, string password);
Task UpdateAsync(Doctor doctor, CancellationToken token);
Task UpdateAsync(Doctor doctor);
Task DeleteAsync(Doctor doctor, CancellationToken token);
Task DeleteAsync(Doctor doctor);
Task<IEnumerable<Doctor>> GetAllAsync();
Task<IEnumerable<Doctor>> GetAllAsync(CancellationToken token);
}