protected void ToModel(IEntityDataType entityDataType) { entityDataType = entityDataType ?? throw new ArgumentNullException(nameof(entityDataType)); entityDataType.IsActive = this.IsActive.HasValue ? this.IsActive.Value : true; }
protected void ToEntity(IEntityDataType entityDataType) { entityDataType = entityDataType ?? throw new ArgumentNullException(nameof(entityDataType)); entityDataType.IsActive = this.IsActive; }