Exemple #1
0
        public void AffixTags(string collection, string id, IEnumerable <Tag> tags)
        {
            if (tags == null)
            {
                throw new SparkException("No tags specified on the request");
            }
            Uri         key   = BuildKey(collection, id);
            BundleEntry entry = store.Get(key);

            if (entry == null)
            {
                throw new SparkException(HttpStatusCode.NotFound, "Could not set tags. The resource was not found.");
            }

            entry.AffixTags(tags);
            store.Add(entry);
        }