Commit 2797ae87 authored by Vishal Vaddadhi's avatar Vishal Vaddadhi

Merge branch 'create_marks' into 'master'

fix createMarks

See merge request !7
parents ee30cc91 145efc3d
......@@ -25,8 +25,7 @@ public class StudentMarksController {
// (POST) create studentmark
@PostMapping("/studentMarks")
public ResponseEntity<StudentMarks> createMarks(@RequestBody StudentMarks studentMarks) {
StudentMarks studentMarks1 = studentService.addStudent(studentMarks);
return ResponseEntity.ok().body(studentMarks1);
return ResponseEntity.ok(studentService.addStudent(studentMarks));
}
// (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