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