using System; namespace ln.http { [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = true)] public class MapAttribute : Attribute { public string Path { get; set; } public HttpMethod Method { get; set; } public MapAttribute(){} public MapAttribute(HttpMethod method, string path) { Method = method; Path = path; } } }