title: Asp.net MVC RenderAction method in multiple controller
body: <p>I am doing some plugin kind of work using asp.net mvc. 
  I have two plugins(mvc projects) Say users and home. In both the plugins, I have Home Controllers. Yes the names are home controller in both the plugins(projects). When I build the project the Dlls are copied to the host  project (third one).</p>
  
  <p>this is home plugin </p>
  
  <pre><code>namespace Plugin.Home.Controllers
  {
  public class HomeController : Controller
  {
      public string Index()
      {
          return "Home from home";
      }
  
      public string JustATest()
      {
          return "Just a test from home";
      }
  
  }
  }
  </code></pre>
  
  <p>Here is another controller in different project(User Plugin)</p>
  
  <p>this is home controller </p>
  
  <pre><code>namespace Plugin.Users.Controllers
  {
  public class HomeController : Controller
  {
      public string Index()
      {
          return "Home from Users";
      }
  
      public string JustATest()
      {
          return "Just a test from Users";
      }
  
      public string JustAnotherTest()
      {
          return "Just another test from Users";
      }
  
  }
  }
  </code></pre>
  
  <p>In global.asax I have register routes using namespaces.</p>
  
  <pre><code>routes.MapRoute(
          "Default", // Route name
          "Home/{action}/{id}", // URL with parameters
          new { controller = "Home", action = "Index", id = UrlParameter.Optional },     
   new[] { "Plugin.Home.Controllers" }
  
  routes.MapRoute(
             "Users", // Route name
             "users/{action}/{id}", // URL with parameters
             new { controller = "Home", action = "Index", id = UrlParameter.Optional },     new[] { "Plugin.Users.Controllers" }
         );
  </code></pre>
  
  <p>I can access all the routes in the browser without any problem. </p>
  
  <p>Now the problems </p>
  
  <ol>
  <li><p>I try to use @{Html.RenderAction("JustATest","Home");}
  It only renders from the home controller in home module. How can i render it from Users module.</p></li>
  <li><p>It throws an exception saying method not found in home controller, 
  when I say  @{Html.RenderAction("JustAnotherTest","Home");}</p></li>
  </ol>
  
  <p>At what stage I can check if a given controller has the given method or not (Some ControllerFactory). Or how can i make sure it picks up the right controller.</p>
  
  <p>Help will be appreciated.</p>
  
  <p>Regards</p>
  
  <p>Parminder</p>