Beispiel #1
0
        public async Task <bool> UpdateAsync(Setting setting)
        {
            _dbContext.Update(setting);
            var x = await _dbContext.SaveChangesAsync();

            return(x > 0);
        }
Beispiel #2
0
        public async Task <bool> UpdateAsync(App app)
        {
            _dbContext.Update(app);
            var x = await _dbContext.SaveChangesAsync();

            var result = x > 0;

            return(result);
        }
Beispiel #3
0
        public async Task <bool> UpdateAsync(ServerNode node)
        {
            _dbContext.Update(node);
            var x = await _dbContext.SaveChangesAsync();

            var result = x > 0;

            return(result);
        }
        public async Task <bool> UpdateAsync(Config config)
        {
            _dbContext.Update(config);
            var x = await _dbContext.SaveChangesAsync();

            var result = x > 0;

            if (result)
            {
                ClearAppPublishedConfigsMd5Cache(config.AppId);
            }

            return(result);
        }