api v2.0
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using Application.Services.Database;
|
||||
using Core.Entities;
|
||||
using Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Infrastructure.Services.PostgreSQL;
|
||||
|
||||
public class PatientRepository(HealthcareManagerDatabase context)
|
||||
: BasePostgreSQLRepository<Patient>(context), IPatientRepository
|
||||
{
|
||||
public async Task<Patient?> FindByEmailAsync(string email)
|
||||
{
|
||||
return await _context.Pacients.FirstOrDefaultAsync(d => d.Email == email);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user