public ActionResult ActiveAbout(int id) { var aboutValue = abm.GetByID(id); aboutValue.AboutStatus = true; abm.AboutUpdate(aboutValue); return(RedirectToAction("Index", "About")); }
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")); }
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")); }
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)); }