/// <summary> /// Add an event work /// </summary> /// <param name="work"></param> /// <remarks> /// Check if the event work exists. If it does then return the event work object, otherwise /// create a new event work object and return it. /// </remarks> /// <returns></returns> public EventWork AddEventWork(Work work) { var eventWork = this.EventWorks.FirstOrDefault(ep => ep.WorkID == work.WorkID && ep.WorkPremiere == work.WorkPremiere); if (eventWork != null) { return(eventWork); } eventWork = EventWork.AddEventWork(this, work); return(eventWork); }