public async Task <bool> AddDimension(Dimension dimension) { await _spaceContext.Dimensions.AddAsync(dimension); var result = await _spaceContext.SaveChangesAsync(); return(result > 0); }
private async Task <bool> SaveChanges() { var result = await _spaceContext.SaveChangesAsync(); return(result > 0); }