MobilUser lekérdezése

This commit is contained in:
2025-04-15 15:13:08 +02:00
parent ae7257a3ff
commit 50dcf3aff6
4 changed files with 42 additions and 10 deletions
+4 -1
View File
@@ -68,7 +68,10 @@ namespace WorkFlowCheck.BL.Services
};
try
{
var users = await _dbContext.Users.ToListAsync();
var users = await _dbContext.Users
.Include(i => i.UserRoles)
.ThenInclude(i => i.Role)
.ToListAsync();
if (users != null)
{
retVal = _mapper.Map<List<UserDTO>>(users);