implement fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using AipsCore.Application.Abstract;
|
||||
using AipsCore.Application.Models.Whiteboard.Command.AddUserToWhiteboard;
|
||||
using AipsCore.Application.Models.Whiteboard.Command.CreateWhiteboard;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
@@ -14,4 +15,12 @@ public class WhiteboardController : ControllerBase
|
||||
var whiteboardId = await dispatcher.Execute(command, cancellationToken);
|
||||
return Ok(whiteboardId.IdValue);
|
||||
}
|
||||
|
||||
[HttpPost("adduser")]
|
||||
public async Task<IActionResult> AddUser(AddUserToWhiteboardCommand command, IDispatcher dispatcher,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
await dispatcher.Execute(command, cancellationToken);
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user