public override HttpHandlerResult Get() { var vm = new DeploymentIndexVM(this) { PageTitle = "Photon Server Deployments", }; vm.Build(); return(Response.View("Deployment\\Index.html", vm)); }
public override HttpHandlerResult Get() { var vm = new DeploymentIndexVM { PageTitle = "Photon Server Deployments", }; try { vm.Build(); } catch (Exception error) { vm.Errors.Add(error); } return(Response.View("Deployment\\Index.html", vm)); }