.net core api action 不能用作 httpget注释的参数名

        [HttpGet("{Act}/{UserID}", Name = "GetDevList")]       //action不能用,act改为action,编译无问题,测试时提示404
        public string Get(string Act, string UserID)
        {
            return UserID + Act + Request.Host;
        }
原文地址:https://www.cnblogs.com/jopny/p/13892615.html