public String list() throws Exception { message = Integer.toString(hashCode()); String name = null; if (example != null) { name = example.getName(); } Result examples = exampleService.findExamples(name, page, pageSize); toVm(examples); return SUCCESS; }
public String doAdd() throws Exception { Result result = exampleService.createExample(example); toVm(result); return SUCCESS; }