/// <summary> /// Get business class corresponding to an event. /// </summary> /// <param name="evt">Event.</param> /// <returns>Busines class.</returns> internal static AEventBusiness GetBusiness(EventDto evt) { AEventBusiness result; if (evt is TimeEventDto) { result = new TimeEventBusiness(evt); } else { result = null; } return result; }
/// <summary> /// Constructor. /// </summary> /// <param name="evt">Event.</param> internal AEventBusiness(EventDto evt) { Event = evt; }
/// <summary> /// Constructor. /// </summary> /// <param name="evt">Event.</param> internal TimeEventBusiness(EventDto evt) : base(evt) { }