protected void SetValidatorErrors <TModel>(Func <Expression <Func <TModel, object> > > expresssion, params object[] errors) { ToolkitExtensions.SetValidatorErrors(this, expresssion, errors); }
protected void SetValidatorErrors(string property, params object[] errors) { ToolkitExtensions.SetValidatorErrors(this, property, errors); }
/// <summary> /// Sets errors for a property using the <see cref="Validator"/>. /// </summary> /// <param name="propertyExpresssion">The expression for the property</param> /// <param name="errors">The collection of errors</param> protected void SetValidatorErrors <T>(Expression <Func <T> > propertyExpresssion, params object[] errors) { ToolkitExtensions.SetValidatorErrors(this, propertyExpresssion, errors); }