title: How to override an Action method in Mvc
body: <p>I'm using a Cms for Mvc. This Cms has the following Controller:</p>
  
  <pre><code>public class OrderController : Controller
  {
      public ActionResult Index()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>For customization needs, I'd like to override the behaviour of this controller and return something different when the same URL is visited by the user. What's the best approach in order to achieve this result?</p>
  
  <p>I tried to inherit the Cms Controller and make the ActionResult an override, following this answer: <a href="https://stackoverflow.com/questions/12614603/how-to-override-controller-actionresult-method-in-mvc3">How to override controller actionresult method in mvc3?</a></p>
  
  <pre><code>public class OrderController : Cms.Areas.Admin.Controllers.OrderController
  {
      public override ActionResult Index(Guid orderItemId)
      {
          // Do extra stuff
  
          return View();
      }
  }
  </code></pre>
  
  <p>But this doesn't work. When I try to navigate "admin/order" I still enter in the Cms Controller/Action.</p>
  
  <p>Any suggestion?</p>
  
  <p>NOTE: The Controller I'm trying to override is in another assembly and the action is set to virtual. It's in an Area, therefore the Route is configured inside AreaRegistration.</p>