Example #1
0
        /// <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;
        }
Example #2
0
 /// <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)
 {
 }