title: Render Razor View to string?
body: <p>I need to render  my razor view to string. I would like to pass my model:</p>
  
  <pre><code>public class ContactDetails
  {
      public string Name { get; set; }
      public string Lastname { get; set; }
      public string Email { get; set; }
  }
  </code></pre>
  
  <p>and use it in my razor view and then render  it to the string. </p>
  
  <p>I heard about RazorEngine but I would like to do it without it. <strong>Also I don't have an controller context.</strong></p>
  
  <p>Maybe I need fake some controller context?</p>
  
  <p>Is it possible to do it? Do you have any idea how can to solve this problem?</p>