public void MarkAsDeployed(bool success, DeploymentEnvironment environment) { var deploymentDate = DateTime.UtcNow; History.Add(new ReleaseCandidateHistoryItem { Date = deploymentDate, StateChange = string.Format("Deployed to {0} environment.", environment.Name) }); Deployments.Add(new ReleaseCandidateDeployment { Date = deploymentDate, Environment = environment.Name }); environment.RecordDeployment(VersionNumber, success); }
public void MarkAsDeployed(bool success, DeploymentEnvironment environment) { var deploymentDate = DateTime.UtcNow; History.Add(new ReleaseCandidateHistoryItem { Date = deploymentDate, StateChange = string.Format("Deployed to {0} environment.", environment.Name) }); Deployments.Add(new ReleaseCandidateDeployment { Date = deploymentDate, Environment = environment.Name }); environment.RecordDeployment(VersionNumber, success); }
public ActionResult Create(DeploymentEnvironment environment) { DocumentSession.Store(environment, environment.Name.MakeEnvironmentId()); return RedirectToAction("Index"); }