public ActionResult ActiveAbout(int id)
        {
            var aboutValue = abm.GetByID(id);

            aboutValue.AboutStatus = true;
            abm.AboutUpdate(aboutValue);
            return(RedirectToAction("Index", "About"));
        }
Beispiel #2
0
        public ActionResult StatusActiveAndPassive(int id)
        {
            var aboutValue = abm.GetByID(id);

            if (aboutValue.AboutStatus == true)
            {
                aboutValue.AboutStatus = false;
            }
            else
            {
                aboutValue.AboutStatus = true;
            }
            abm.AboutUpdate(aboutValue);
            return(RedirectToAction("Index"));
        }
Beispiel #3
0
        public ActionResult DurumDegistir(int id)
        {
            var deger = abm.GetByID(id);

            if (deger.AboutStatus == true)
            {
                deger.AboutStatus = false;
                abm.AboutUpdate(deger);
            }
            else
            {
                deger.AboutStatus = true;
                abm.AboutUpdate(deger);
            }
            return(RedirectToAction("Index"));
        }
Beispiel #4
0
        public ActionResult ChangeAboutStatus(int id)
        {
            var AboutValue = abm.GetByID(id);

            if (AboutValue.AboutStatus == true)
            {
                AboutValue.AboutStatus = false;
            }
            else
            {
                AboutValue.AboutStatus = true;
            }

            abm.AboutUpdate(AboutValue);
            return(RedirectToAction("Index"));
        }
        public ActionResult DeleteAbout(int id)
        {
            var AboutValue = abm.GetByID(id);

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

            case false:
                AboutValue.AboutStatus = true;
                break;
            }
            abm.AboutDelete(AboutValue);
            return(RedirectToAction("Index"));
        }
        public ActionResult EditAbout(int id)
        {
            var wvalue = abm.GetByID(id);

            return(View(wvalue));
        }