public DeploymentDetailsViewModel(BusinessLogic.Core.Model.Deployment deployment) { Deployment = new DeploymentViewModel(deployment); Logs = deployment.Logs .ToList() .ConvertAll(l => new DeploymentLogViewModel(l)); }
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; }