示例#1
0
        public ActionResult DisableAbout(int id)
        {
            var aboutValue = abm.GetById(id);

            aboutValue.AboutStatus = false;
            abm.AboutUpdate(aboutValue);
            return(RedirectToAction("Index"));
        }
        public ActionResult EditAbout(int id)
        {
            var aboutValues = abm.GetById(id);

            if (aboutValues != null)
            {
                return(View(aboutValues));
            }
            return(View());
        }
        public ActionResult DeleteAbout(int id)
        {
            var result = aboutManager.GetById(id);

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

            if (aboutValue.IsActive == true)
            {
                aboutValue.IsActive = false;
            }
            else
            {
                aboutValue.IsActive = true;
                abm.AboutDelete(aboutValue);
            }

            abm.AboutDelete(aboutValue);
            return(RedirectToAction("Index"));
        }
        public ActionResult DeleteAbout(int id)
        {
            var aboutValue = aboutManager.GetById(id);

            aboutManager.AboutDelete(aboutValue);

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

            if (result.AboutStatus == true)
            {
                result.AboutStatus = false;
            }
            else
            {
                result.AboutStatus = true;
            }
            aboutManager.AboutUpdate(result);
            return(RedirectToAction("Index"));
        }
示例#7
0
        public ActionResult StatusActiveAndPassive(int id)
        {
            var aboutValue = aboutManager.GetById(id);

            if (aboutValue.AboutStatus == true)
            {
                aboutValue.AboutStatus = false;
            }
            else
            {
                aboutValue.AboutStatus = true;
            }
            aboutManager.Update(aboutValue);
            return(RedirectToAction("Index"));
        }
示例#8
0
        public ActionResult ChangeStatus(int id)
        {
            var value = abm.GetById(id);

            if (value.Status)
            {
                value.Status = false;
            }
            else
            {
                value.Status = true;
            }
            abm.AboutUpdate(value);
            return(RedirectToAction("Index"));
        }
        public ActionResult ChangeStatus(int id)
        {
            var about = abm.GetById(id);

            if (about.Status == false)
            {
                about.Status = true;
            }
            else
            {
                about.Status = false;
            }
            abm.AboutDelete(about);
            return(RedirectToAction("Index"));
        }
        public ActionResult AktifveyaPasifDurum(int id)
        {
            var aboutValue = abm.GetById(id);

            if (aboutValue.AboutStatus == true)
            {
                aboutValue.AboutStatus = false;
            }
            else
            {
                aboutValue.AboutStatus = true;
            }
            abm.AboutUpdate(aboutValue);
            return(RedirectToAction("Index"));
        }
示例#11
0
        public ActionResult EditAbout(int id)
        {
            var aboutValue = aboutManager.GetById(id);

            return(View(aboutValue));
        }