public VariableViewModel Build(Variable variable)
 {
     return new VariableViewModel()
       {
     Id = variable.Id,
     Name = variable.Name,
     Value = variable.Value
       };
 }
        public Variable Map(CreateOrEditViewModel createOrEdit)
        {
            Variable variable = new Variable();

              if (createOrEdit.Id != null)
            variable = this.handler.Storage.GetRepository<IVariableRepository>().WithKey((int)createOrEdit.Id);

              else variable.ConfigurationId = createOrEdit.ConfigurationId;

              variable.Code = createOrEdit.Code;
              variable.Name = createOrEdit.Name;
              variable.Value = createOrEdit.Value;
              variable.Position = createOrEdit.Position;
              return variable;
        }