コード例 #1
0
 public virtual bool IsValid(string[] fieldNames)
 {
     ASA.Web.Services.Common.ASAModelValidator modelValidator = new ASAModelValidator();
     return(modelValidator.Validate(this, fieldNames));
 }
コード例 #2
0
 public virtual bool IsValid()
 {
     ASA.Web.Services.Common.ASAModelValidator modelValidator = new ASAModelValidator();
     return(modelValidator.Validate(this)); // this will validate all fields on the model object
 }