public void UpdateMaterialCommand_Executed(object sender) { _contoData.MaterialUpdate(new Material { Id = ExistingId, Description = ExistingDescription, MeasureId = ExistingSelectedMeasure, Price = ExistingPrice }); UpdateList(); UpdatePanelVisibility = Visibility.Collapsed; }