コード例 #1
0
        public override HttpHandlerResult Get()
        {
            var vm = new DeploymentDetailsVM(this)
            {
                PageTitle        = "Photon Server Deployment Details",
                ProjectId        = GetQuery <string>("project"),
                DeploymentNumber = GetQuery <uint>("number"),
            };

            vm.Build();

            return(Response.View("Deployment\\Details.html", vm));
        }
コード例 #2
0
        public override HttpHandlerResult Get()
        {
            var vm = new DeploymentDetailsVM {
                PageTitle        = "Photon Server Deployment Details",
                ProjectId        = GetQuery <string>("project"),
                DeploymentNumber = GetQuery <uint>("number"),
            };

            try {
                vm.Build();
            }
            catch (Exception error) {
                vm.Errors.Add(error);
            }

            return(Response.View("Deployment\\Details.html", vm));
        }