Forum Discussion

andre-idf's avatar
andre-idf
New Contributor
5 years ago

Adding New Controllers Not Showing in UI

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

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?

  • 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
  • andre-idf's avatar
    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