/// <summary> /// Initializes a new instance of the <see cref="Core.Controllers.ControlEntity"/> class. /// </summary> /// <param name="model">entity model.</param> public ControlEntity(Core.Models.ModelEntity model) { Model = model; if (Model.Control != null) { throw new Exception("ModelEntity.Control already has an ControlEntity."); } Model.Control = this; }
/// <summary> /// Initializes a new instance of the <see cref="Core.Controllers.Actions.Action"/> class. /// </summary> /// <param name="model">action model.</param> public Action(Core.Models.ModelEntity model) : base(model) { }