class TodoController {

    @RequestMapping(value = "/{id}", method = RequestMethod.PUT)
    public TodoDTO update(@PathVariable("id") Long id, @RequestBody @Valid TodoDTO dto) {
        dto.setId(id);

        LOGGER.info("Updating todo entry with information: {}", dto);

        TodoDTO updated = crudService.update(dto);

        LOGGER.info("Updated todo entry: {}", updated);

        return updated;
    }

    @Autowired public  TodoController(TodoCrudService crudService, TodoSearchService searchService);

}