Exemplo n.º 1
0
        public ActionResult Add(int id)
        {
            var product = _productRepository.FindById(id);

            _basket.AddProduct(product);
            return(RedirectToAction("Index"));
        }