public EventTypeHelper(API.LABURNUM.COM.EventType eventType) { if (eventType == null) { throw new Exception(API.LABURNUM.COM.Component.Constants.ERRORMESSAGES.PARAMETER_CANNOT_BE_NULL); } ; this.EventTypes = new List <API.LABURNUM.COM.EventType>(); this.EventTypes.Add(eventType); }
private DTO.LABURNUM.COM.EventTypeModel MapCore(API.LABURNUM.COM.EventType eventType) { DTO.LABURNUM.COM.EventTypeModel dtoClass = new DTO.LABURNUM.COM.EventTypeModel() { EventTypeId = eventType.EventTypeId, Text = eventType.Text, CreatedOn = eventType.CreatedOn, IsActive = eventType.IsActive, LastUpdated = eventType.LastUpdated }; return(dtoClass); }