protected override bool IsValid(ZOperationResult operationResult, IZValidatableObject entity) { bool result = base.IsValid(operationResult, entity); if (!result) { operationResult.Clear(); // Html.BeginForm() + Html.ValidationSummary() } return(result); }
protected virtual bool IsValid(ZOperationResult operationResult, IZValidatableObject entity) { entity.Validate(operationResult); return(base.IsValid(operationResult, typeof(TEntity).Name)); }