This commit is contained in:
andrei-mihnea-cerbu
2024-04-08 02:31:05 +03:00
parent 61a55fa735
commit b4eca98e0a
57 changed files with 185 additions and 105 deletions
@@ -0,0 +1,19 @@
using Core.Entities;
namespace Application.Services.Database;
public interface IDoctorRepository
{
Task AddAsync(Doctor doctor);
Task<Doctor?> GetByIdAsync(Guid id);
Task<Doctor?> FindByEmailAsync(string email);
Task<bool> CredentialsMatch(string email, string password);
Task UpdateAsync(Doctor doctor);
Task DeleteAsync(Doctor doctor);
Task<IEnumerable<Doctor>> GetAllAsync();
}