title: Get link to PartialView in Orchard CMS
body: <p>I want to render a RazorView to string but in Orchard CMS, but I don't know how to get link to a partial view to get string.</p>
  
  <pre><code>public string RenderRazorViewToString(string viewName, object model)
          {
              ViewData.Model = model;
              using (var sw = new StringWriter())
              {
                  var viewResult = ViewEngines.Engines.FindPartialView(ControllerContext, viewName);
                  var viewContext = new ViewContext(ControllerContext, viewResult.View, ViewData, TempData, sw);
                  viewResult.View.Render(viewContext, sw);
                  viewResult.ViewEngine.ReleaseView(ControllerContext, viewResult.View);
                  return sw.GetStringBuilder().ToString();
              }
          }
  </code></pre>
  
  <p>If in another MVC Project - not Orchard - it worked OK with the code:</p>
  
  <pre><code>string result = RenderRazorViewToString("~/Views/Home/PartialViewEmail.cshtml", null);
  </code></pre>
  
  <p>But in Orchard CMS, it doesn't know where to get that partialview.</p>
  
  <p>What should I do ?</p>
  
  <p>Thanks so much !</p>