Ask a Question

Adding New Controllers Not Showing in UI

SOLVED
andre-idf
New Contributor

Adding New Controllers Not Showing in UI

Currently, I have 4 controllers/categories on my UI ready and working.

controllers.png

However, I have 7 controllers in my folder. The expectation is to have them show up, along with the others, in the screenshot above. I can't figure out why they aren't showing. Even the JSON view isn't picking them up. I've built and rebuilt the project but to no avail. Any ideas?

controllers-in-solution.png

1 REPLY 1
andre-idf
New Contributor

I believe the issue was that inside the controller, the name of the class didn't in with the word "Controller". It ended with DTO. I removed that and it showed up.

 

I went from 

public class OrderControllerDTO : ApiController

to

public class OrderController : ApiController
cancel
Showing results for 
Search instead for 
Did you mean: