.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; }
[HttpGet("{Act}/{UserID}", Name = "GetDevList")] //action不能用,act改为action,编译无问题,测试时提示404 public string Get(string Act, string UserID) { return UserID + Act + Request.Host; }