public static GranuleEntropyViewModel ToGranuleEntropy(GranuleEntropy elem) { return(new GranuleEntropyViewModel { Id = elem.Id, DiagnosticTestId = elem.DiagnosticTestId, GranulePosition = elem.GranulePosition, LingvistUX = elem.LingvistUX, LingvistFT = elem.LingvistFT, Count = elem.Count }); }
public static GranuleEntropy ToGranuleEntropy(GranuleEntropyBindingModel model, GranuleEntropy elem = null) { if (elem == null) { elem = new GranuleEntropy(); } elem.DiagnosticTestId = model.DiagnosticTestId; elem.GranulePosition = model.GranulePosition; elem.LingvistUX = Converter.ToLingvistUX(model.LingvistUX); elem.LingvistFT = Converter.ToLingvistFT(model.LingvistFT); elem.Count = model.Count; return(elem); }