public ActionResult StudentClasses_Create([DataSourceRequest] DataSourceRequest request,
                                                  StudentClass studentClass)
        {
            if (ModelState.IsValid)
            {
                _studentClassService.Add(studentClass);
            }

            return(Json(new[] { studentClass }.ToDataSourceResult(request, ModelState)));
        }
        public async Task <MessageModel <long> > PostAddClass(string className)
        {
            long add = await _studentClassService.Add(new StudentClass()
            {
                Grades = className
            });

            return(new MessageModel <long>()
            {
                msg = "添加成功",
                status = 200,
                success = true,
                response = add
            });
        }