Ejemplo n.º 1
0
        /// <summary>
        /// Deletes the object from the data store.
        /// </summary>
        protected override void DataDelete()
        {
            OnSaving(this, SaveAction.Delete);
            if (this.Deleted)
            {
                BlogService.DeleteBlogRoll(this);
            }

            BlogRolls.Remove(this);
            OnSaved(this, SaveAction.Delete);

            this.Dispose();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the BlogRollItem from the data store.
 /// </summary>
 /// <param name="id">The blogroll item id.</param>
 /// <returns>The blogroll item.</returns>
 public static BlogRollItem GetBlogRollItem(Guid id)
 {
     return(BlogRolls.Find(br => br.Id == id));
 }