Example #1
0
 public void AddProduct(ProductEntity entity)
 {
     if (entity != null)
     {
         _productRep.AddProduct(entity);
     }
 }
        public async Task <Product> AddProduct(Product addProduct)
        {
            var result = await productRepository.AddProduct(addProduct);

            return(result);
        }
 public void InsertProduct([FromBody] Product product)
 {
     _productsRepo.AddProduct(product);
 }