Exemplo n.º 1
0
        public ActionResult DeleteAbout(int id)
        {
            var aboutValue = abm.GetByAboutId(id);

            switch (aboutValue.AboutStatus)
            {
            case true:
                aboutValue.AboutStatus = false;
                break;

            case false:
                aboutValue.AboutStatus = true;
                break;
            }


            abm.AboutDelete(aboutValue);

            return(RedirectToAction("Index"));
        }