// 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. using System; using System.Collections.Generic; using Microsoft.AspNet.Mvc; using Microsoft.AspNet.Mvc.Routing; using Microsoft.AspNet.Routing; namespace RoutingWebSite { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public class HttpMergeAttribute : Attribute, IActionHttpMethodProvider, IRouteTemplateProvider { private static readonly IEnumerable _supportedMethods = new[] { "MERGE" }; public HttpMergeAttribute(string template) { Template = template; } public IEnumerable HttpMethods { get { return _supportedMethods; } } /// public string Template { get; private set; } /// public int? Order { get; set; } /// public string Name { get; set; } } }