aspnetcore/src/Microsoft.AspNet.Mvc.ModelB.../ModelState.cs

20 lines
580 B
C#

// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Mvc.ModelBinding
{
public class ModelState
{
private readonly ModelErrorCollection _errors = new ModelErrorCollection();
public ValueProviderResult Value { get; set; }
public ModelErrorCollection Errors
{
get { return _errors; }
}
public ModelValidationState ValidationState { get; set; }
}
}