Пример #1
0
        public ActionResult EditCategory(Category cat)
        {
            Session["ControllerName"] = "Edit Category";
            if (Session["loginDetails"] != null)
            {


                if (ModelState.IsValid)
                {
                    ProductAdminBLL bll = new ProductAdminBLL();
                    int res = bll.UpdateCategory(cat);
                    if (res > 0)
                    {
                        return RedirectToAction("Category");
                    }
                }
                return View();
            }
            else
            {

                return RedirectToAction("Error");
            }
        }