Exemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            Product product = productionService.GetProduct(id);

            if (product != null)
            {
                productionService.RemoveProduct(product);
            }
            return(RedirectToAction("Index"));
        }