Hello,
There are several things you could check:
Is your controller a public class?
Is your method (the Index endpoint) a public method? Actually, could you share the method signature with us so we can see if there is anything wrong with that also?
You could try to remove the namespace parameter when you are registering the route.
Also, try to call your method without the Id parameter so you could see if that is causing an issue.
Hope that helps!
Regards,
Anton
There are several things you could check:
Is your controller a public class?
Is your method (the Index endpoint) a public method? Actually, could you share the method signature with us so we can see if there is anything wrong with that also?
You could try to remove the namespace parameter when you are registering the route.
Also, try to call your method without the Id parameter so you could see if that is causing an issue.
Hope that helps!
Regards,
Anton
I can't believe I fell for this! My route provider did not have the class set as public partial class and my controller was not decorated with public...
I got it working!
Thanks to all who helped!