public virtual bool IsValid(string[] fieldNames) { ASA.Web.Services.Common.ASAModelValidator modelValidator = new ASAModelValidator(); return(modelValidator.Validate(this, fieldNames)); }
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 }