Bootstrap Icon hozzáadása

This commit is contained in:
2025-03-18 13:12:17 +01:00
parent 8c1966ef4c
commit 9297ff3970
14 changed files with 202 additions and 52 deletions
+18 -1
View File
@@ -189,7 +189,24 @@ namespace WorkFlowCheck.BL.Services
return retVal;
}
public async Task<RoleDTO> GetRoleAsync(int Id) => throw new NotImplementedException();
public async Task<RoleDTO> GetRoleAsync(int Id)
{
var retVal = new RoleDTO();
try
{
var user = await _dbContext.Roles.Where(w => w.Id == Id).FirstOrDefaultAsync();
if (user != null)
{
retVal = _mapper.Map<RoleDTO>(user);
}
}
catch (Exception ex)
{
Log.Error(ex.Message);
}
return retVal;
}
public async Task<List<RoleDTO>> GetAllRoleAsync()
{
var retVal = new List<RoleDTO>();