public bool Save(FlagSetting entity)
        {
            bool isSuccess = false;

            if (string.IsNullOrEmpty(entity.Id))
            {
                _repository.Insert <FlagSetting>(entity);

                isSuccess = !string.IsNullOrEmpty(entity.Id) ? true : false;

                if (isSuccess)
                {
                    _redisCache.SetValue(entity.Name, entity.FlagValue);
                }

                return(isSuccess);
            }
            else
            {
                isSuccess = _repository.Update <FlagSetting>(entity);

                if (isSuccess)
                {
                    _redisCache.SetValue(entity.Name, entity.FlagValue);
                }
            }

            return(isSuccess);
        }