title: Ajax action URL to a controller inside a partial view
body: <p>I have a partial view which has dual list boxes and four buttons; exactly like this 
  <a href="http://www.meadmiracle.com/dlb/DLBPlugin.aspx" rel="nofollow">http://www.meadmiracle.com/dlb/DLBPlugin.aspx</a></p>
  
  <p>Now I want to reuse this partial view all throughout the site and every time a user clicks on the buttons to move things in and out of the list, I want this to be persisted in the database via Ajax, I am making an Ajax call using JQuery; this poses a difficulty because the URL of the Ajax call will be different based on the controller that is responding to the call!</p>
  
  <pre><code>$.ajax({
          type: "POST",
          url: '@Url.Action("######HOW TO FIGRE OUT WHICH CONTROLLER #######")',
          success: function (data) {
      //Show some message to the user
          }
      });
  </code></pre>
  
  <p>Now how do I determine the URL? it will be dynamic, it will be based on the controller that is responding to the initial Index page.</p>
  
  <p>e.g.: if I am in the Cities or Towns page, the user moves Cities and Towns to the list boxes, how do I know it’s the CityController ajax action or the TownController ajax action, how would we know this in the partial view where to post for the ajax call?</p>