Пример #1
0
        public ActionResult DeleteSubCategory_post(int id)
        {
            Session["ControllerName"] = "Delete SubCategory";
            if (Session["loginDetails"] != null)
            {
                ProductAdminBLL bll = new ProductAdminBLL();
                int res = bll.deleteSubCategory(id);
                if (res > 0)
                {
                    return RedirectToAction("SubCategory", "ProdAdmin");
                }
                return View();
            }
            else
            {

                return RedirectToAction("Error");
            }
        }