public IHttpActionResult Post([FromBody] Product product)
        {
            var getProductResult = _productsManager.GetProductsFiltered(p => p.ID == product.ID);

            if (!getProductResult.Success)
            {
                return(BadRequest("Product not found"));
            }

            var insertResult = _productsManager.AddProduct(getProductResult.Data.FirstOrDefault());

            if (!insertResult.Success)
            {
                return(BadRequest(insertResult.Message));
            }

            return(Ok());
        }
 public Product AddProduct(Product p)
 {
     productsManager.AddProduct(p);
     return(p);
 }