DeploymentTracker.App.Windows.PackageDeployment.LogDeploymentDetailsIntoDatabase C# (CSharp) Method

LogDeploymentDetailsIntoDatabase() private method

Logs the details into database.
private LogDeploymentDetailsIntoDatabase ( bool isSuccessful, DeploymentStatus status, string version, string environment ) : void
isSuccessful bool if set to true [is successful].
status DeploymentStatus The status.
version string The version.
environment string The environment.
return void
        private void LogDeploymentDetailsIntoDatabase(bool isSuccessful, DeploymentStatus status, string version, string environment)
        {
            string solutionNameFromPackage = Path.GetFileNameWithoutExtension(txtPackagePath.Text);
            BuildTransactionEntry buildItem = new BuildTransactionEntry
            {
                DeploymentDateTime = DateTime.Now,
                DeploymentNotes = txtDeploymentNotes.Text,
                IsSuccess = isSuccessful,
                SolutionName = string.IsNullOrEmpty(txtSolutionName.Text) ? solutionNameFromPackage : txtSolutionName.Text,
                PerformedBy = string.Format("{0}\\{1}", Environment.UserDomainName, Environment.UserName),
                Tfslabelused = string.IsNullOrEmpty(txtTFSLabelName.Text) ? Constants.EmptyTFSLabel : txtTFSLabelName.Text,
                Status = status,
                Version= version,
                Environment = environment
            };

            buildItem.SaveThisInDB();
        }