Monday, 9 October 2017

MVC - Json - Fix error The resource cannot be found


Watch this example on Youtube:

to fix it replace

something.url = "/Controller/Method";

with

something.url = '@url.Action("Controller", "Method")';

No comments:

Post a Comment