Skip to content

Commit 88398cc

Browse files
committed
refactor Controller (addNewRepresentative method)
1 parent f5870a9 commit 88398cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

government-service/src/main/java/com/csaba79coder/bestprotocol/controller/RepresentativeController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ public class RepresentativeController implements GovernmentRepresentativeApi {
2020

2121
@Override
2222
public ResponseEntity<RepresentativeModel> addNewRepresentative(String name, String jobTitle, String address, String phoneNumber, String email, MultipartFile image, String note) {
23-
RepresentativeModel model = representativeService.addNewRepresentative(name, jobTitle, address, phoneNumber, email, image, note);
24-
return ResponseEntity.status(201).body(model);
23+
return ResponseEntity.status(201).body(representativeService.addNewRepresentative(name, jobTitle, address, phoneNumber, email, image, note));
2524
}
2625

2726
@Override

0 commit comments

Comments
 (0)