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
I received error "has more than one parameter that was specified ..." for having mention of [ApiController] on top of class and then inheriting class from APIController.
Corrected issue by inheriting the class from Controller.
[Authorize]
[Route("api/the")]
**[ApiController]**
public class TheController : **Controller**