Exemplo n.º 1
0
        public async Task <ProductInfo> AddProductAsync(ProductInfo product)
        {
            await _dbContext.AddAsync(product);

            await _dbContext.SaveChangesAsync();

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

            await _dbContext.SaveChangesAsync();

            return(sale);
        }