Ejemplo n.º 1
0
        public GlobalJsonResult <RollbackResult> RollbackComponentsForVersion([FromBody] RollbackRequest request)
        {
            installation.RollbackInstallationVersion(request.FailedInstallationComponentId, Version.Parse(request.FailedInstallationVersion));
            var version = installation.GetCurrentVersion();

            var result = new RollbackResult();

            result.PopulateFrom(version);

            return(GlobalJsonResult <RollbackResult> .Success(System.Net.HttpStatusCode.NoContent, result));
        }