Commit 145efc3d authored by vivaddadhi's avatar vivaddadhi

fix createMarks

parent ee30cc91
...@@ -25,8 +25,7 @@ public class StudentMarksController { ...@@ -25,8 +25,7 @@ public class StudentMarksController {
// (POST) create studentmark // (POST) create studentmark
@PostMapping("/studentMarks") @PostMapping("/studentMarks")
public ResponseEntity<StudentMarks> createMarks(@RequestBody StudentMarks studentMarks) { public ResponseEntity<StudentMarks> createMarks(@RequestBody StudentMarks studentMarks) {
StudentMarks studentMarks1 = studentService.addStudent(studentMarks); return ResponseEntity.ok(studentService.addStudent(studentMarks));
return ResponseEntity.ok().body(studentMarks1);
} }
// (GET) find studentmark by id // (GET) find studentmark by id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment