public PropertyModel(string propertyName, string errorMessage, MvcValidationType? mvcValidationType, string parent, int? listIndex) { PropertyName = propertyName; ErrorMessage = errorMessage; MvcValidationType = mvcValidationType.HasValue ? mvcValidationType.ToString() : null; Parent = parent; ListIndex = listIndex; }
//pz: keep the old constructor for backward compatibility public PropertyModel(string propertyName, string errorMessage, MvcValidationType? mvcValidationType) : this(propertyName, errorMessage, mvcValidationType, string.Empty, null) { }