Exemplo n.º 1
0
        public ActionResult EditBrand_Post(Brand brand)
        {
            Session["ControllerName"] = "Edit Brand";
            if (Session["loginDetails"] != null)
            {
                ProductAdminBLL bll = new ProductAdminBLL();

                if (ModelState.IsValid)
                {
                    int res = bll.UpdateBrand(brand);
                    if (res > 0)
                    {
                        return RedirectToAction("Brand");
                    }
                    else
                    {
                        return View();
                    }


                }
                else
                {
                    return View();
                }

            }
            else
            {
                return RedirectToAction("Error");
            }

        }