public InvokeResult removeTasks(Long[] ids) { Set<Task> tasks = new HashSet<Task>(); for (Long id : ids) { tasks.add(application.getTask(id)); } application.removeTasks(tasks); return InvokeResult.success(); }
public List<TaskDTO> findAllTask() { return TaskAssembler.toDTOs(application.findAllTask()); }
public InvokeResult updateTask(TaskDTO taskDTO) { application.updateTask(TaskAssembler.toEntity(taskDTO)); return InvokeResult.success(); }
public InvokeResult removeTask(Long id) { application.removeTask(application.getTask(id)); return InvokeResult.success(); }
public InvokeResult getTask(Long id) { return InvokeResult.success(TaskAssembler.toDTO(application.getTask(id))); }