From 17ab9eb305f45bb36faaa9535b1b75dc55e91391 Mon Sep 17 00:00:00 2001 From: Veljko Tosic Date: Mon, 9 Feb 2026 00:18:55 +0100 Subject: [PATCH] Bare bones controller for testing domain entity persistance --- .../Controllers/WhiteboardController.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dotnet/AipsWebApi/Controllers/WhiteboardController.cs diff --git a/dotnet/AipsWebApi/Controllers/WhiteboardController.cs b/dotnet/AipsWebApi/Controllers/WhiteboardController.cs new file mode 100644 index 0000000..0adbbcb --- /dev/null +++ b/dotnet/AipsWebApi/Controllers/WhiteboardController.cs @@ -0,0 +1,17 @@ +using AipsCore.Application.Abstract; +using AipsCore.Application.Models.Whiteboard.Command.CreateWhiteboard; +using Microsoft.AspNetCore.Mvc; + +namespace AipsWebApi.Controllers; + +[ApiController] +[Route("[controller]")] +public class WhiteboardController : ControllerBase +{ + [HttpPost] + public async Task> CreateWhiteboard(CreateWhiteboardCommand command, IDispatcher dispatcher, CancellationToken cancellationToken) + { + var whiteboardId = await dispatcher.Execute(command, cancellationToken); + return Ok(whiteboardId.IdValue); + } +} \ No newline at end of file