protected override IndicatorCheckModel SetModel(Indicator entity) { this.GreenCondition = BaseConditionModel.ToModel(entity.GreenCondition); this.YellowCondition = BaseConditionModel.ToModel(entity.YellowCondition); this.RedCondition = BaseConditionModel.ToModel(entity.RedCondition); return(this); }
protected override BaseConditionModel SetModel(BaseCondition entity) { this.Id = entity.Id; this.Der = BaseConditionModel.ToModel((entity as AndCondition).Der); this.Izq = BaseConditionModel.ToModel((entity as AndCondition).Izq); this.LogicOperator = ConditionType.AND; return(this); }