예제 #1
0
        public IActionResult addStudent(Student student)
        {
            var res = _service.addStudent(_context, student);

            if (res.Error == "")
            {
                return(Ok(res.students));
            }
            else
            {
                return(BadRequest(res.Error));
            }
        }