Exemple #1
0
 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
     });
 }
Exemple #2
0
 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);
 }