Example #1
0
 public void DeleteEntry(SyndicationItem entry)
 {
     if (entry == null)
     {
         throw new ArgumentNullException("entry");
     }
     this.Delete(entry.GetEditLink(true).Uri).EnsureStatusIs(HttpStatusCode.OK).Dispose();
 }
Example #2
0
 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;
 }