fix Report ระบบลา

This commit is contained in:
Suphonchai Phoonsawat 2023-12-24 13:28:37 +07:00
parent ef415217c8
commit bcbac7814d
4 changed files with 92 additions and 59 deletions

View file

@ -80,6 +80,23 @@ namespace BMA.EHR.Application.Repositories
}
}
public async Task<List<Profile>> GetProfileWithKeycloak()
{
try
{
var data = await _dbContext.Set<Profile>().AsQueryable()
.Where(x => x.ProfileType == "officer")
.Where(x => x.KeycloakId != null)
.ToListAsync();
return data;
}
catch
{
throw;
}
}
public async Task<List<Profile>> SearchProfile(string? citizenId, string? firstName, string? lastName)
{
try