// 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;
namespace Microsoft.AspNetCore.Mvc
{
///
/// An attribute that enables binding for all properties the decorated controller or Razor Page model defines.
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class BindPropertiesAttribute : Attribute
{
///
/// When true, allows properties to be bound on GET requests. When false, properties
/// do not get model bound or validated on GET requests.
///
/// Defaults to false.
///
///
public bool SupportsGet { get; set; }
}
}