Bare bones controller for testing domain entity persistance

This commit is contained in:
Veljko Tosic
2026-02-09 00:18:55 +01:00
parent e526d25116
commit 17ab9eb305

View File

@@ -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<ActionResult<int>> CreateWhiteboard(CreateWhiteboardCommand command, IDispatcher dispatcher, CancellationToken cancellationToken)
{
var whiteboardId = await dispatcher.Execute(command, cancellationToken);
return Ok(whiteboardId.IdValue);
}
}