Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            About about = aboutManager.Find(x => x.Id == id);

            aboutManager.Delete(about);
            return(RedirectToAction("Index"));
        }
        public ActionResult DeleteAbout(int id)
        {
            var result = aboutManager.GetById(id);

            aboutManager.Delete(result);
            return(RedirectToAction("Index"));
        }
        public ActionResult AboutDelete(int?id)
        {
            var about    = aboutManager.Find(x => x.Id == id);
            int isDelete = aboutManager.Delete(about);

            return(RedirectToAction("About"));
        }
Example #4
0
        public ActionResult Delete(int id)
        {
            var aboutValue = aboutManager.GetById(id);

            aboutManager.Delete(aboutValue);

            return(RedirectToAction("Index"));
        }
Example #5
0
        public ActionResult DeleteAbout(int id)
        {
            var reult = _aboutManager.GetById(id);

            if (reult.AboutStatus == true)
            {
                reult.AboutStatus = false;
            }
            else
            {
                reult.AboutStatus = true;
            }
            _aboutManager.Delete(reult);
            return(RedirectToAction("Index"));
        }