Ejemplo n.º 1
0
        public static DeploymentDto ToDto(this Deployment from, Environment environment)
        {
            var to = from.ConvertTo <DeploymentDto>();

            to.Environment = environment.ToDto();
            to.Package     = from.Package.ToDto();

            //var to = from.ConvertTo<MyDto>();
            //to.Items = from.Items.ConvertAll(x => x.ToDto());
            //to.CalculatedProperty = Calculate(from.Seed);
            return(to);
        }