Пример #1
0
 public DeploymentDetailsViewModel(BusinessLogic.Core.Model.Deployment deployment)
 {
     Deployment = new DeploymentViewModel(deployment);
     Logs       = deployment.Logs
                  .ToList()
                  .ConvertAll(l => new DeploymentLogViewModel(l));
 }
Пример #2
0
 public DeploymentViewModel(BusinessLogic.Core.Model.Deployment deployment)
 {
     Guid             = deployment.Guid;
     FtpUsername      = deployment.FtpUsername;
     FtpHostname      = deployment.FtpHostname;
     GitUrl           = deployment.GitUrl;
     GitBranch        = deployment.GitBranch;
     FtpRootDirectory = deployment.FtpRootDirectory;
     FtpPassword      = deployment.FtpPassword;
     FtpPort          = deployment.FtpPort;
     CreatedAt        = deployment.CreatedAt;
     State            = deployment.State;
 }