Skip to content

Instantly share code, notes, and snippets.

@gprasant
Created May 20, 2012 15:46
Show Gist options
  • Save gprasant/2758572 to your computer and use it in GitHub Desktop.
Save gprasant/2758572 to your computer and use it in GitHub Desktop.
protected internal virtual ViewResult View(string viewName, string masterName, object model) {
if (model != null) {
ViewData.Model = model;
}
return new ViewResult {
ViewName = viewName,
MasterName = masterName,
ViewData = ViewData,
TempData = TempData
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment