async Task <bool> SetGithubOptions(string id, ApiResourceGithubPublishRequest value)
        {
            var key = CodeGenControllerKeys.GithubOptions + id;

            var cacheResult = JsonConvert.SerializeObject(value);

            var result = await redis.SetAsync(key, cacheResult, null);

            return(result);
        }
        public async Task <ApiResult <bool> > GithubOptions(string id, [FromBody] ApiResourceGithubPublishRequest value)
        {
            if (!ModelState.IsValid)
            {
                return(new ApiResult <bool>(l, BasicControllerEnums.UnprocessableEntity,
                                            ModelErrors()));
            }

            var result = await SetGithubOptions(id, value);

            return(new ApiResult <bool>(result));
        }