Ejemplo n.º 1
0
        public ActionResult DeletePermanet(int id)
        {
            MainMenu mainMenu = new MainMenu();

            mainMenu.MainMenuID = id;
            int value = IObjMainMenu.DeleteMainMenuByID(mainMenu);

            if (value > 0)
            {
                TempData["Mesage"] = "Record Deleted Successfully";
                return(View("Delete"));
            }
            else
            {
                TempData["Message"] = "Something Went Wrong";
                return(View("Delete"));
            }

            return(RedirectToAction("Index"));
        }