Ejemplo n.º 1
0
 public static void ToEntity(DT.AlgorithmClass source, DA.AlgorithmClass target)
 {
     if ((source != null) && (target != null))
     {
         target.Id = source.Id; target.Name = source.Name; target.Description = source.Description;
     }
 }
Ejemplo n.º 2
0
 public static DA.AlgorithmClass ToEntity(DT.AlgorithmClass source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DA.AlgorithmClass {
         Id = source.Id, Name = source.Name, Description = source.Description
     });
 }