title: Umbraco and MVC and JSON
body: <p>So I got pulled into a deep end having zero experience in umbraco and a tight deadline. 
  I don't know how umbraco works and how you integrate your MVC site into it really. A lot of headfuzz to get around.</p>
  
  <p>basically the person I am inheriting it from created a basic controller from MVC and we can call the MVC site as we normally do.</p>
  
  <p>I can also do JSON calls to the controller action which gives us back some data in a ViewModel. Great.
  But when you browse to the site using umbraco and navigate to that same page, we run into big problems such as not being able to invoke the JSON call to get the data as it says object not found (in other words, the controller action is not found).</p>
  
  <p>I read about umbraco basically overriding the default MVC routings but... why such a mess? :)</p>
  
  <p>how can I integrate an existing MVC site into umbraco without much pain?
  what is the url to call a controller action in umbraco integration?</p>
  
  <p>say we have this:</p>
  
  <pre><code>public JsonResult GetPersonDetail(int id)
  {
     var vm = new AjaxPersonDetailViewModel(....);
     return new JsonResult( Data = vm };
  }
  </code></pre>
  
  <p>I can call this in JQuery like so:</p>
  
  <p>/MyController/GetPersonDetail/1</p>
  
  <p>so how do I do that with Umbraco?</p>