bool isValid = Validator.TryValidateObject(model, validationContext, results, true);. DataAnnotations tryvalidateobject always returns true.
確定! 回上一頁