title: ASP.Net view folder with a folder inside - How to create the controller
body: <p>I want to create a URL similar to: localhost:port/farm/animals/cow.cshtml.
  How do I create a controller for pages behind /animals/ ? </p>
  
  <p>If I create a standard:</p>
  
  <pre><code>public class FarmController : Controller
  {
      //
      // GET: /Farm/
  
      public ActionResult Cow()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>I will not get there because the cow.cshtml is behind the animals.
  Nor will I get to cow.cshtml with the following code:</p>
  
  <pre><code>public class AnimalsController : Controller
  {
      //
      // GET: /Animals/
  
      public ActionResult Cow()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>Because the link to cow.cshtml is not /animals/ but /farm/animals/cow.</p>
  
  <p>How can I solve this issue?</p>