示例#1
0
        public IActionResult DelSort(SortManage model)
        {
            if (ModelState.IsValid)
            {
                //判断栏目名是否存在
                if (_sort.IsSortExisted(model.DelName))
                {
                    _sort.DelSort(model.DelName);
                    ViewBag.DelSuccess = "Success";

                    return(View("ManageSort"));
                }
                else
                {
                    ViewBag.DelError = "Fail";

                    return(View("ManageSort"));
                }
            }

            return(View("ManageSort"));
        }