예제 #1
0
        public IActionResult DiagramItemMove(DiagramItemMoveRequest request)
        {
            var response = new DiagramItemMoveResponse
            {
                Success   = true,
                ClientId  = request.ClientId,
                ActionId  = request.ActionId,
                DiagramId = request.DiagramId,
                Items     = request.Items
            };

            _mainNotifier.DiagramItemMoveResponse(response);
            var diagram = _diagramService.GetDiagramById(request.DiagramId);
            var action  = new DiagramItemMoveAction(request.ActionId, request);

            _actionService.AddAction(diagram, action);

            return(Ok());
        }
예제 #2
0
 public async void DiagramItemMoveResponse(DiagramItemMoveResponse response)
 {
     await SendResponse(response);
 }