Пример #1
0
        public IActionResult RemoveSection(string id)
        {
            bool isSucces = ContentModel.RemoveSection(int.Parse(id));

            if (isSucces)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                return(NotFound());
            }
        }