Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 //pz: keep the old constructor for backward compatibility
 public PropertyModel(string propertyName, string errorMessage, MvcValidationType? mvcValidationType)
     : this(propertyName, errorMessage, mvcValidationType, string.Empty, null)
 {
 }