Files
FACULTATE-HEALTHCARE_MANAGER/backend/Application/Services/Database/PostgreSQL/IPatients.cs
T

20 lines
448 B
C#

using Core.Entities;
namespace Application.Services.Database.PostgreSQL;
public interface IPatientRepository
{
Task AddAsync(Patient patient);
Task<Patient?> GetByIdAsync(Guid id);
Task<Patient?> FindByEmailAsync(string email);
Task<bool> CredentialsMatch(string email, string password);
Task UpdateAsync(Patient patient);
Task DeleteAsync(Patient patient);
Task<IEnumerable<Patient>> GetAllAsync();
}