Пример #1
0
        public ActionResult MarkAsDeployed(string versionNumber, string environment, bool success)
        {
            var candidate = DocumentSession.GetCandidate(versionNumber);
            var env       = DocumentSession.GetEnvironment(environment);

            candidate.MarkAsDeployed(success, env);
            return(new EmptyResult());
        }
Пример #2
0
        public ActionResult GetVersion(string name)
        {
            var environemt = DocumentSession.GetEnvironment(name);

            return(new ContentResult
            {
                Content = environemt.CurrentVersion
            });
        }
        public ActionResult Details(string name)
        {
            var environment = DocumentSession.GetEnvironment(name);

            return(View(environment));
        }