private void CopyPreassignedKeywordsToCC(IContentClass targetCC)
{
try
{
List<IKeyword> keywordsToAssign =
PreassignedKeywords.Select(
x => targetCC.Project.Categories.GetByName(x.Category.Name).Keywords.GetByName(x.Name)).ToList();
targetCC.PreassignedKeywords.Set(keywordsToAssign);
} catch (Exception e)
{
throw new SmartAPIException(Session.ServerLogin,
string.Format("Could not copy preassigned keywords for content class {0}",
Name), e);
}
}