title: servicestack Razor view with request and response DTO
body: <p>I'm having a go with the razor functionality in service stack. 
  I have a razor cshtml view working for one of my response DTO's.</p>
  
  <p>I need to access some values from the request DTO in the razor view that have been filled in from some fields from the REST route, so i can construct a url to put into the response html page and also label some form labels.</p>
  
  <p>Is there anyway of doing this?  I don't want to duplicate the property from the request DTO into the response DTO just for this html view.  Because i'm trying to emulate an existing REST service of another product, i do not want to emit extra data just for the html view.</p>
  
  <p>eg
  <code>http://localhost/rest/{Name}/details/{Id}</code></p>
  
  <p>eg</p>
  
  <pre><code>    @inherits ViewPage&lt;DetailsResponse&gt;
     @{
  
          ViewBag.Title = "todo title";
          Layout = "HtmlReport";
     }
  </code></pre>
  
  <p>this needs to come from the request dto NOT @Model</p>
  
  <p><code>&lt;a href="/rest/@Model.Name"&gt;link to user&lt;/a&gt;</code><br>
  <code>&lt;a href="/rest/@Model.Name/details/@Model.Id"&gt;link to user details&lt;/a&gt;</code>    </p>