示例#1
0
        //delete
        public IActionResult DeleteLabel(int id)
        {
            Label label = _planRepository.GetLabelById(id);

            if (label == null)
            {
                return(NotFound());
            }

            _planRepository.DeleteLabel(label);

            return(RedirectToAction("labeltable"));
        }