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