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
My controller has some refactored code whose methods are marked public. Looks like either moving them out of the controller or marking private corrects this problem. Or attributing the pesky methods with [NonAction]
might also be a choice as asked at asp.net Core mvc hide and exclude Web Api Controller Method