Esempio n. 1
0
        public override HttpHandlerResult Get()
        {
            var vm = new DeploymentIndexVM(this)
            {
                PageTitle = "Photon Server Deployments",
            };

            vm.Build();

            return(Response.View("Deployment\\Index.html", vm));
        }
Esempio n. 2
0
        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));
        }