Ejemplo n.º 1
0
        public ActionResult DeleteProduct(int productId)
        {
            Product product = businessLayer.DeleteProduct(productId);

            if (product != null)
            {
                TempData["message"] = string.Format("{0} was successfully deleted", product.Name);
            }

            return(RedirectToAction("GetCategories", "Admin"));
        }