public void UpdateValue(object value) { string stringVal = value.ToString(); _state.Value = stringVal; _repo.UpdateUserSettingState(_state); }