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