Exemplo n.º 1
0
        public EnvironmentModel ToModel(Environment environment)
        {
            EnvironmentModel model = new EnvironmentModel();

            model.Id    = environment.Id;
            model.Name  = environment.Name;
            model.Color = environment.Color;
            return(model);
        }
Exemplo n.º 2
0
 public void Apply(Environment environment, EnvironmentModel model)
 {
     environment.Name  = model.Name;
     environment.Color = model.Color;
 }