HU a datatables-hez

This commit is contained in:
2025-03-19 09:59:42 +01:00
parent 2fd147bb36
commit f74922d01e
10 changed files with 78 additions and 18 deletions
+4 -1
View File
@@ -38,7 +38,10 @@ namespace WorkFlowCheck.BL.Services
try
{
var user = await _dbContext.Users.Where(w => w.Id == Id).FirstOrDefaultAsync();
var user = await _dbContext.Users
.Include(i => i.UserRoles)
.ThenInclude(i => i.Role)
.Where(w => w.Id == Id).FirstOrDefaultAsync();
if (user != null)
{
retVal = _mapper.Map<UserDTO>(user);