示例#1
0
 /**
  * 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);
 }
示例#2
0
 public static Result deleteTask(Long id) {
   Task.delete(id);
   return redirect(routes.Application.tasks());
 }
示例#3
0
 public static Result deleteTask(Long id) {
   Task.delete(id);
   return redirect(routes.TaskController.tasks());
 }