Example #1
0
        public async Task <ProductInfo> AddProductAsync(ProductInfo product)
        {
            await _dbContext.AddAsync(product);

            await _dbContext.SaveChangesAsync();

            return(product);
        }
Example #2
0
        public async Task <SaleInfo> AddSaleAsync(SaleInfo sale)
        {
            await _dbContext.AddAsync(sale);

            await _dbContext.SaveChangesAsync();

            return(sale);
        }