Is it possible to dynamically set which master page to use?
I have tried this, but it does not work out. I guess it is because of how you parse the files.
@{
var master = (parameter) ? "Master1.cshtml" : "Master2.cshtml";
}
@MasterPageFile(master)