public RouteAttribute(bool isPost, string action) { //remove leading / if (action != "/" && action != "/*" && action[0] == '/') action = action.Substring(1, action.Length - 1); this.IsPost = isPost; this.Action = action; }