public ActionResult DeleteBrand_Post(int Brand_Id) { Session["ControllerName"] = "Delete Brand"; if (Session["loginDetails"] != null) { ProductAdminBLL bll = new ProductAdminBLL(); int res = bll.DeleteBrand(Brand_Id); if (res > 0) { return RedirectToAction("Brand"); } else { return View(); } } else { return RedirectToAction("Error"); } }