kgiszewski/LearnUmbraco7

Umbraco surface controller routing problem

Opened this issue · 1 comments

Hi, i just copyed your code under MyNameSurfaceController Class. So i hoped to route controller as you described : /umbraco/surface/mynamesurface/getnames But i get HTTP Error 404.0 - Not Found. I tried everything I could but no result. Umbraco version is 7.12.4. Anyone had same problem before ?

Hi There,
There is no need to include "surface" in the controller name. This was changed.
Make sure the action method GetNames include HttpGetAttribute [HttpGet]

Hope this helps.