Bootstrap Icon hozzáadása
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user