Rename create owner controller handler.

This commit is contained in:
Awadhesh Kumar 2020-04-27 20:55:39 +05:30
parent 1752f1789b
commit f535c69eea

View file

@ -26,7 +26,7 @@ public class OwnerController {
}
@PostMapping("/new")
public ResponseEntity<Object> processCreationForm(@Valid @RequestBody NewOwnerForm owner, BindingResult result) {
public ResponseEntity<Object> createOwner(@Valid @RequestBody NewOwnerForm owner, BindingResult result) {
if (result.hasErrors()) {
return new ResponseEntity<Object>(result.getAllErrors(),HttpStatus.BAD_REQUEST);
} else {