Esempio n. 1
0
        public ActionResult DeleteCategory_Post(int id)
        {
            Session["ControllerName"] = "Delete Category";
             if (Session["loginDetails"] != null)
            {
                    ProductAdminBLL bll = new ProductAdminBLL();

                    int res = bll.DeleteCategory(id);
                    if (res > 0)
                    {
                        return RedirectToAction("Category");
                    }
                    else
                    {
                        return RedirectToAction("Category");
                    }

            }
             else
             {

                 return RedirectToAction("Error");
             }
        }