class MovieController {

    @PostMapping("/movie/new")
    public ResponseEntity<?> createMovie(@Valid @RequestBody final MovieDto movieDto,
        final BindingResult bindingResult) {

        final List<String> errors = appUtils.getModelErrors(bindingResult, "id");
        if (!errors.isEmpty()) {
            return ResponseEntity.badRequest().body(
                MovieResultModel.builder().errors(errors).build());
        }

        final MovieDto createdMovieDto = movieService.createMovie(movieDto);
        final Result<MovieDto> result = MovieResultModel.builder().result(createdMovieDto).build();

        return ResponseEntity.ok(result);
    }

}