public TodoDTO update(@RequestBody TodoDTO dto, @PathVariable("id") Long todoId) throws TodoNotFoundException, FormValidationError {
LOGGER.debug("Updating a to-do entry with information: {}", dto);
validate(OBJECT_NAME_TODO, dto);
Todo updated = service.update(dto);
LOGGER.debug("Updated the information of a to-entry to: {}", updated);
return createDTO(updated);
}