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