// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.AspNet.Mvc.ModelBinding.Validation { /// /// Validates a model value. /// public interface IModelValidator { /// /// Gets a value indicating whether or not this validator validates that a required value /// has been provided for the model. /// bool IsRequired { get; } /// /// Validates the model value. /// /// The . /// /// A list of indicating the results of validating the model value. /// IEnumerable Validate(ModelValidationContext context); } }