Пример #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();
        }