MVC Widget with dynamic content
I've been trying to make a MVC based widget that has some dynamic content i.e. a typeahead suggestion for input box.
I've create two actions on my controller. Index which returns the view (the actual widget) and action Search that returns a list of names as Json result.
My problem is that I can't get Search action to work.
If i call it using jquery $.ajax method I get a 404 not found. The link i'm using is /<url of page widget is on>/Search
is this not correct? what should this be?
I've included some very basic code below of my setup