Esempio n. 1
0
        private void SynchronizeTags(T entity, uint id)
        {
            foreach (var tag in cache.GetTagsFor(id))
            {
                if (!entity.Tags.Contains(tag))
                {
                    DeleteTag(entity, tag);
                }
            }

            foreach (var tag in entity.Tags)
            {
                SaveTag(entity, tag);
            }
        }