public Keyword AddKeyword(string name, List <Item> items = null) { Keyword keyword = new Keyword { Name = name, Items = items ?? new List <Item>() }; if (items != null) { items.ForEach(i => i.Keywords.Add(keyword)); } keyword = ItemRepo.CreateKeyword(keyword); UowManager.Save(); return(keyword); }