예제 #1
0
        public ActionResult ProdDelete_post(string id)
        {

            Session["ControllerName"] = "Delete Product";
            if (Session["loginDetails"] != null)
            {
                ProductAdminBLL bll = new ProductAdminBLL();
                int res = bll.deleteProduct(id);
                if (res > 0)
                {

                    RedirectToAction("ProductList");
                }
                return View();
            }
            else
            {

                return RedirectToAction("Error");
            }
        }