public static UserDTO2 TransformToUserDTO2(this Models.User source) { DtoGen.Core.PropertyConverter.EnsureInitialized(); UserDTO2 target = new UserDTO2(); target.Id = source.Id; target.Name = source.Name; return target; }
public static void PopulateTarget(this Models.User source, UserDTO2 target) { DtoGen.Core.PropertyConverter.EnsureInitialized(); target.Id = source.Id; target.Name = source.Name; }