public async Task <ICollection <TagDto> > GetAllRootTags() { CheckGetPermission(); ICollection <Tag> rootTags = await tagManager.GetAllRootTagsAsync(); ICollection <TagDto> rootTagDtos = new List <TagDto>(); foreach (var rootTag in rootTags) { TagDto rootTagDto = MapToEntityDto(rootTag); rootTagDtos.Add(rootTagDto); } return(rootTagDtos); }