diff options
Diffstat (limited to 'src/System.Web.Mvc/HttpGetAttribute.cs')
-rw-r--r-- | src/System.Web.Mvc/HttpGetAttribute.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/System.Web.Mvc/HttpGetAttribute.cs b/src/System.Web.Mvc/HttpGetAttribute.cs new file mode 100644 index 00000000..41029ceb --- /dev/null +++ b/src/System.Web.Mvc/HttpGetAttribute.cs @@ -0,0 +1,15 @@ +using System.Reflection; + +namespace System.Web.Mvc +{ + [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] + public sealed class HttpGetAttribute : ActionMethodSelectorAttribute + { + private static readonly AcceptVerbsAttribute _innerAttribute = new AcceptVerbsAttribute(HttpVerbs.Get); + + public override bool IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo) + { + return _innerAttribute.IsValidForRequest(controllerContext, methodInfo); + } + } +} |