API Traieste
This commit is contained in:
@@ -1,14 +1,20 @@
|
||||
using Application.Contracts.Database;
|
||||
using Application.Services.Database;
|
||||
using Core.Entities;
|
||||
using Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Infrastructure.Services.PostgreSQL
|
||||
{
|
||||
public class DoctorRepository : BasePostgreSQLRepository<Doctor>, IDoctorRepository
|
||||
{
|
||||
public DoctorRepository(HealthcareManagerContext context) : base(context)
|
||||
public DoctorRepository(HealthcareManagerDatabase context) : base(context)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<bool> IsDoctorExisting(string email)
|
||||
{
|
||||
return await _context.Doctors.AnyAsync(d => d.Email == email);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user