示例#1
0
        public async Task <bool> AddDimension(Dimension dimension)
        {
            await _spaceContext.Dimensions.AddAsync(dimension);

            var result = await _spaceContext.SaveChangesAsync();

            return(result > 0);
        }
示例#2
0
        private async Task <bool> SaveChanges()
        {
            var result = await _spaceContext.SaveChangesAsync();

            return(result > 0);
        }