I am trying to get all of the tags that are created in the system in a list. I am doing some heavy lifting with a lot of objects that require I look up each tag and add it to a collection for each object. This would be more efficient if I did not have to call
for each object. But rather get the tags with one call and then search in that list.
product.Tags.Add(allTags.FirstOrDefault(x => x.id == tagForProduct).Name);
Can this be done?