Beispiel #1
0
 protected override void OnAfterInsert(DeploymentJob entity, DeploymentJobDto dto)
 {
     if (!dto.Parameters.IsNullOrEmpty())
     {
         foreach (var p in dto.Parameters)
         {
             _variableService.Insert(new Variable
             {
                 Scope   = VariableScope.DeploymentJob,
                 ScopeID = entity.DeploymentJobID,
                 Name    = p.Name,
                 Value   = p.Value
             });
         }
     }
 }