/** * Delete a task * * @param storyId * @param taskId */ public static void delete(Long storyId, long taskId) { Task toDelete = Task.findById(taskId); if (toDelete != null) { toDelete.delete(); } renderJSON(UserMessage.SUCCESSFUL); }
public static Result deleteTask(Long id) { Task.delete(id); return redirect(routes.Application.tasks()); }
public static Result deleteTask(Long id) { Task.delete(id); return redirect(routes.TaskController.tasks()); }