return getMovie(result.getId());
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes={"application/json", "application/hal+json"})
public @ResponseBody ResponseEntity<Resource<Movie>> editMovie(@PathVariable UUID id, @RequestBody MovieForm movieForm) {
Movie movie = movieService.findMovieById(id);
movie.setDescription(movieForm.getDescription());
movie.setStartDate(movieForm.getStartDate());
movie.setTitle(movieForm.getTitle());
movieService.updateMovie(movie);
return getMovie(id);
}