17 lines
602 B
C#
17 lines
602 B
C#
using Domain.Entities;
|
|
|
|
namespace Application.Services.Database.PostgreSQL;
|
|
|
|
public interface IDoctorRepository
|
|
{
|
|
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 UpdateAsync(Doctor doctor, CancellationToken token);
|
|
|
|
Task DeleteAsync(Doctor doctor, CancellationToken token);
|
|
|
|
Task<IEnumerable<Doctor>> GetAllAsync(CancellationToken token);
|
|
} |