title: ServiceStack razor default page
body: <p>Say I have 2 pages</p>
  
  <ol>
  <li><p><code>/NotADefault.cshtml</code></p></li>
  <li><p><code>/Views/Default.cshtml</code></p></li>
  </ol>
  
  <p><strong>Question 1.</strong></p>
  
  <p>Now I run it, page <code>A</code> always gets called implicitly as start-up default page no matter what I name it.
  <br>Page <code>B</code> will only be called when I explicitly call localhost/View/Default. How do I make page <code>B</code> (the one in View folder) my default page?</p>
  
  <p><strong>Question 2.</strong></p>
  
  <p>I also have <code>NotADefaultService.cs</code> and <code>DefaultService.cs</code>. I give each page a Service class at the back. However, when page <code>A</code> is called <code>NotADefaultService.cs</code> never gets called. Only <code>DefaultService.cs</code> gets called when page <code>B</code> is called... </p>
  
  <p>My observation is that only the pages in the <code>View</code> folder will get their back-end service class working. Outside of <code>View</code> folder it doesn't work.  </p>
  
  <p><strong>Combining Q1 and Q2.</strong></p>
  
  <p>How do I:</p>
  
  <p><strong>Option 1.</strong> get the backend service class working under <code>/ root</code> outside "View" folder? </p>
  
  <p>OR </p>
  
  <p><strong>Option 2.</strong> appoint <code>/View/Default.schtml</code> as my default at start-up where the service class can be hit?</p>