/// <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(); }
/// <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)); }