Example #1
0
        public ActionResult EditSubCategory(SubCategoryDetails details)
        {
            Session["ControllerName"] = "Edit SubCategory";
             if (Session["loginDetails"] != null)
            {

            ProductAdminBLL bll = new ProductAdminBLL();
            GetSubCategoryDDL();
            int res = bll.updateSubCategory(details);
            if (res > 0)
            {
                return RedirectToAction("SubCategory", "ProdAdmin");
            }
           
            return View();
            }
             else
             {
                 return RedirectToAction("Error");
             }
        }