public static void CopyValuesFrom(this IParameterEntryViewModel target, IParameterEntryViewModel source) { target.Name = source.Name; target.Description = source.Description; target.Value = source.Value; target.GroupName = source.GroupName; target.GroupDescription = source.GroupDescription; target.CatalogName = source.CatalogName; target.CatalogDescription = source.CatalogDescription; }
public static ParameterEntry ToEntity(this IParameterEntryViewModel vm) { var dto = vm.Map <IParameterEntryViewModel, ParameterEntry>(); return(dto); }