public void Delete(EventBase eventBase) { mEventsInvitationsBO.Delete(eventBase.UniqueID); mEventLocationBO.Delete(eventBase.EventLocation); mResourceDescriptionBO.Delete(eventBase.ResourceDescription); mEventTimeInfoBO.Delete(eventBase.EventTimeInfo); foreach (HoldingsInfo holdingsInfo in eventBase.HoldingsInfo) { mHoldingsInfoBO.Delete(holdingsInfo); } foreach (ItemBase itemBase in eventBase.ItemChildren) { mItemBaseBO.Delete(itemBase); } foreach (EventBase eventChildran in eventBase.EventChildren) { Delete(eventChildran); } mEventBaseDAL.Delete(eventBase); }
public void Delete(ItemBase itemBase) { mResourceDescriptionBO.Delete(itemBase.ResourceDescription); foreach (HoldingsInfo holdingsInfo in itemBase.HoldingsInfo) { mHoldingsInfoBO.Delete(holdingsInfo); } if (!itemBase.IsLoaded()) { Load(itemBase); } mItemBaseDAL.Delete(itemBase); }