Exemplo n.º 1
0
        public IActionResult AddQClass([FromForm] QClass qClass)
        {
            if (!ModelState.IsValid)
            {
                ModelState.AddModelError(string.Empty, "类型添加错误");
                return(View(qClass));
            }
            _ExamService.AddQClass(qClass);

            return(RedirectToAction(nameof(Index)));
        }