class TodoController {

    @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
    public TodoDTO delete(@PathVariable("id") Long id) {
        LOGGER.info("Deleting todo entry with id: {}", id);

        TodoDTO deleted = crudService.delete(id);

        LOGGER.info("Deleted todo entry: {}", deleted);

        return deleted;
    }

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

}