/// <summary> /// Updates the given existing CnsExploration model entity with the values /// of this CnsExploration viewmodel. /// </summary> /// <param name="cnsExploration">CnsExploration model entity to update.</param> public void ToModel(CnsExploration cnsExploration) { cnsExploration.Behavior = Behavior.GetValueOrDefault(); cnsExploration.CranialNerves = CranialNerves.GetValueOrDefault(); cnsExploration.Tone = Tone.GetValueOrDefault(); cnsExploration.Position = Position.GetValueOrDefault(); cnsExploration.Reflexes = Reflexes.GetValueOrDefault(); }
/// <summary> /// Creates a new CnsExploration model entity based on the data of /// this CnsExploration viewmodel. /// </summary> public CnsExploration ToNewModel() { var cnsExploration = new CnsExploration { Behavior = Behavior.GetValueOrDefault(), CranialNerves = CranialNerves.GetValueOrDefault(), Tone = Tone.GetValueOrDefault(), Position = Position.GetValueOrDefault(), Reflexes = Reflexes.GetValueOrDefault() }; return(cnsExploration); }