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; } }
public static DA.Platform ToEntity(DT.Platform source) { if (source == null) { return(null); } return(new DA.Platform { Id = source.Id, Name = source.Name, Description = source.Description }); }