Apr 30th, 2012, 05:21 AM
Best place for common ajax autcomplete methods in Controllers?
In my application I've got several pages which use the same ajax call for a jquery autocomplete field. Where would be the best place to put the method to avoid duplication of code? There a requite a few autocompelte fields, things like occupation, country, address etc
I've considered using a base controller to extend all my other controllers and putting the common autocomplete methods in there, or instead I've thought about adding interceptors to catch the url map.
What do you think is the best approach?