title: Does a view exist in ASP.NET MVC?
body: <p>Is it possible to determine if a specific view name exists from within a controller before rendering the view?</p>
  
  <p>I have a requirement to dynamically determine the name of the view to render. If a view exists with that name then I need to render that view. If there is no view by the custom name then I need to render a default view.</p>
  
  <p>I'd like to do something similar to the following code within my controller:</p>
  
  <pre><code>public ActionResult Index()
  {
      var name = SomeMethodToGetViewName();
  
      // The 'ViewExists' method is what I've been unable to find.
      if (ViewExists(name))
      {
          retun View(name);
      }
      else
      {
          return View();
      }
  }
  </code></pre>