I\'m using _viewstart.cshtml to automagically assign the same Razor Layout to my views.
It\'s a dead simple file in the root of my Views folder that looks like this:
If you return PartialView() from your controllers (instead of return View()), then _viewstart.cshtml will not be executed.
return PartialView()
return View()
_viewstart.cshtml