presentation

This commit is contained in:
2026-02-05 21:07:16 +01:00
parent adf6cac49a
commit 41793f00c1
10 changed files with 142 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
using AipsCore.Application.Abstract;
using AipsCore.Application.Models.User.Command.CreateUser;
using AipsCore.Domain.Models.User.ValueObjects;
using Microsoft.AspNetCore.Mvc;
namespace AipsWebApi.Controllers;
[ApiController]
[Route("[controller]")]
public class UserController : ControllerBase
{
[HttpPost]
public async Task<ActionResult<int>> CreateUser(CreateUserCommand command, IDispatcher dispatcher, CancellationToken cancellationToken)
{
var userId = await dispatcher.Execute<UserId>(command, cancellationToken);
return Ok(userId.IdValue);
}
}