Skip to content

Instantly share code, notes, and snippets.

Created January 6, 2016 17:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bjoerntx/002a477df5a5814155f5 to your computer and use it in GitHub Desktop.
public ActionResult GetView(string viewName)
switch (viewName)
case "Open":
var documents = new List<Document>();
foreach (string file in Directory.GetFiles(
Document doc = new Document(file);
return PartialView("Stageviews/Open", documents);
return PartialView("Stageviews/" + viewName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment