예제 #1
0
        public async Task AddColumn(Column column, long userId, long?productId)
        {
            column.ProductId = productId;
            column.UserId    = userId;
            await _dbContext.AddAsync(column);

            await _dbContext.SaveChangesAsync();
        }
예제 #2
0
        public async Task AddManufacturer(Manufacturer manufacturer)
        {
            await _dbContext.AddAsync(manufacturer);

            await _dbContext.SaveChangesAsync();
        }