コード例 #1
0
        public IActionResult DiagramItemAdd(DiagramItemAddRequest request)
        {
            var response = new DiagramItemAddResponse
            {
                Success        = true,
                ClientId       = request.ClientId,
                ActionId       = request.ActionId,
                DiagramId      = request.DiagramId,
                Item           = request.Item,
                ParentRelation = request.ParentRelation,
            };

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

            _actionService.AddAction(diagram, action);

            return(Ok());
        }
コード例 #2
0
 public async void DiagramItemAddResponse(DiagramItemAddResponse response)
 {
     await SendResponse(response);
 }