public void DeleteEntry(SyndicationItem entry) { if (entry == null) { throw new ArgumentNullException("entry"); } this.Delete(entry.GetEditLink(true).Uri).EnsureStatusIs(HttpStatusCode.OK).Dispose(); }
public SyndicationItem UpdateEntry(SyndicationItem oldValue, SyndicationItem newValue) { if (oldValue == null) { throw new ArgumentNullException("oldValue"); } if (newValue == null) { throw new ArgumentNullException("newValue"); } return this.Put(oldValue.GetEditLink(true).Uri, AtomEntryContentType, HttpContentExtensions.CreateDataContract(newValue.GetAtom10Formatter())).EnsureStatusIs(HttpStatusCode.OK).Content.ReadAsDataContract<Atom10ItemFormatter>().Item; }