public async Task <Role> GetRoleAsync(string userName) { var roles = await GetRolesAsync(userName); return(await _dbContext.Set <Role>() .Include(r => r.DefaultControllerName) .FirstOrDefaultAsync(r => r.Name.Equals(roles.FirstOrDefault()))); }