public override bool Update(Enclosure enclosure)
 {
     return(_procedures.UpdateEnclosure(enclosure.Title,
                                        enclosure.Url,
                                        enclosure.MimeType,
                                        enclosure.Size,
                                        enclosure.AddToFeed,
                                        enclosure.ShowWithPost,
                                        enclosure.EntryId,
                                        enclosure.Id));
 }
Пример #2
0
 public override void Update(Enclosure enclosure)
 {
     if (enclosure == null)
     {
         throw new ArgumentNullException("enclosure");
     }
     if (!enclosure.IsValid)
     {
         throw new ArgumentException(enclosure.ValidationMessage);
     }
     _procedures.UpdateEnclosure(enclosure.Title,
                                 enclosure.Url,
                                 enclosure.MimeType,
                                 enclosure.Size,
                                 enclosure.AddToFeed,
                                 enclosure.ShowWithPost,
                                 enclosure.EntryId,
                                 enclosure.Id);
 }