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