public IActionResult Enroll(StudentEnroll newStudent) { try { return(CreatedAtAction("Enroll", _dbService.Enroll(newStudent))); } catch (Exception e) { return(NotFound("Exception: " + e.Message)); } }