private void save() { var selectedFields = UnitCustomFieldDescriptionList.Where(f => f.IsChecked).ToList(); appController.Publish(new UpdateUnitCustomFieldListArgs(selectedFields)); OnRequestClose(); }
private void save() { var selectedFields = UnitCustomFieldDescriptionList.Where(f => f.IsChecked).ToList(); if (period != null && Unit != null) { appController.Publish(new UpdateUnitInPeriodCustomFieldListArgs(selectedFields, Period.Id, Unit.Id)); } OnRequestClose(); }