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

Method CreateColumn

backend/Controllers/BoardsController.cs:202–224  ·  view source on GitHub ↗
(int id, [FromBody] CreateColumnDto dto)

Source from the content-addressed store, hash-verified

200 }
201
202 [HttpPost("{id}/columns")]
203 public async Task<IActionResult> CreateColumn(int id, [FromBody] CreateColumnDto dto)
204 {
205 var userId = int.Parse(User.FindFirstValue(ClaimTypes.NameIdentifier)!);
206 try
207 {
208 var column = await _boardService.CreateColumnAsync(id, dto, userId);
209
210 // Broadcast to other users
211 await _hubContext.Clients.Group($"board_{id}")
212 .SendAsync("ColumnCreated", column);
213
214 return CreatedAtAction(nameof(GetBoardDetail), new { id = id }, column);
215 }
216 catch (KeyNotFoundException)
217 {
218 return NotFound();
219 }
220 catch (UnauthorizedAccessException)
221 {
222 return Forbid();
223 }
224 }
225
226 [HttpPut("{id}/columns/{columnId}/move")]
227 public async Task<IActionResult> MoveColumn(int id, int columnId, [FromBody] MoveColumnDto dto)

Callers

nothing calls this directly

Calls 1

CreateColumnAsyncMethod · 0.45

Tested by

no test coverage detected