MCPcopy Create free account
hub / github.com/GmpABR/NexusFlow / DeleteTask

Method DeleteTask

backend/Controllers/TasksController.cs:108–123  ·  view source on GitHub ↗
(int id)

Source from the content-addressed store, hash-verified

106 }
107
108 [HttpDelete("{id}")]
109 public async Task<IActionResult> DeleteTask(int id)
110 {
111 try
112 {
113 // DeleteTaskAsync now returns the BoardId if successful
114 var boardId = await _taskService.DeleteTaskAsync(id, GetUserId());
115 if (boardId == null) return NotFound();
116
117 await _hubContext.Clients.Group($"board_{boardId}")
118 .SendAsync("TaskDeleted", id);
119
120 return NoContent();
121 }
122 catch (UnauthorizedAccessException) { return Forbid(); }
123 }
124
125 [HttpPost("{taskId}/subtasks")]
126 public async Task<IActionResult> CreateSubtask(int taskId, [FromBody] CreateSubtaskDto dto)

Callers

nothing calls this directly

Calls 1

DeleteTaskAsyncMethod · 0.45

Tested by

no test coverage detected