// 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; using Microsoft.AspNet.Mvc.Routing; using Microsoft.Framework.Internal; namespace Microsoft.AspNet.Mvc { /// /// Identifies an action that only supports the HTTP DELETE method. /// public class HttpDeleteAttribute : HttpMethodAttribute { private static readonly IEnumerable _supportedMethods = new string[] { "DELETE" }; /// /// Creates a new . /// public HttpDeleteAttribute() : base(_supportedMethods) { } /// /// Creates a new with the given route template. /// /// The route template. May not be null. public HttpDeleteAttribute([NotNull] string template) : base(_supportedMethods, template) { } } }