class TodoController {

    @RequestMapping(method = RequestMethod.POST)
    @ResponseStatus(HttpStatus.CREATED)
    public TodoDTO add(@RequestBody @Valid TodoDTO dto) {
        LOGGER.debug("Adding new todo entry with information: {}", dto);

        TodoDTO added = crudService.add(dto);

        LOGGER.info("Added todo entry: {}", added);

        return added;
    }

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

}