This commit is contained in:
harid 2025-10-17 16:44:56 +07:00
parent 733fe0d734
commit dedd187f37

View file

@ -638,10 +638,10 @@ namespace BMA.EHR.Recruit.Service.Controllers
return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden);
}
var data = await _context.RecruitImports.AsQueryable()
.Include(x => x.ImportFile)
//.Include(x => x.ImportFile)
.Include(x => x.Recruits)
.Include(x => x.ScoreImport)
.ThenInclude(x => x.ImportFile)
//.Include(x => x.ScoreImport)
//.ThenInclude(x => x.ImportFile)
.Include(x => x.ScoreImport)
.ThenInclude(x => x.Scores)
.OrderByDescending(x => x.Year)
@ -668,7 +668,7 @@ namespace BMA.EHR.Recruit.Service.Controllers
})
.ToListAsync();
var roles = _httpContextAccessor?.HttpContext?.User?.FindAll(ClaimTypes.Role)?.Select(c => c.Value).ToList();
//var roles = _httpContextAccessor?.HttpContext?.User?.FindAll(ClaimTypes.Role)?.Select(c => c.Value).ToList();
return Success(data);
}