Error: Action has more than one parameter bound from request body

前端 未结 6 1089
死守一世寂寞
死守一世寂寞 2021-01-11 14:15

I wrote a new method into my Controller of my ASP.Net MVC project and getting error below. I think InvalidOperationException coming from with Swagger. I marked

6条回答
  •  有刺的猬
    2021-01-11 14:33

    For me in the definition of the a new controller automatically add this prerequisite.
    I removed it and it works

    [Route("api/[controller]")]
    [Apicontroller] //remove this line
    

提交回复
热议问题