LV1_018 - รายการลงเวลากรณีพิเศษ (ADMIN)

This commit is contained in:
Suphonchai Phoonsawat 2023-11-24 12:25:03 +07:00
parent e76d994098
commit a8379303f9
8 changed files with 761 additions and 5 deletions

View file

@ -28,6 +28,22 @@ namespace BMA.EHR.Application.Repositories
#region " Methods "
public async Task<Profile?> GetProfileByKeycloakIdAsync(Guid keycloakId)
{
try
{
var data = await _dbContext.Set<Profile>().AsQueryable()
.Include(p => p.Prefix)
.FirstOrDefaultAsync(p => p.KeycloakId == keycloakId);
return data;
}
catch
{
throw;
}
}
public async Task<bool> UpdateDutyTimeAsync(Guid profileId, Guid roundId, DateTime effectiveDate)
{
try