Exemplo n.º 1
0
        public IActionResult RelationAdd(RelationAddRequest request)
        {
            var response = new RelationAddResponse
            {
                Success   = true,
                ClientId  = request.ClientId,
                ActionId  = request.ActionId,
                DiagramId = request.DiagramId,
                Relations = request.Relations
            };

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

            _actionService.AddAction(diagram, action);

            return(Ok());
        }
Exemplo n.º 2
0
 public async void RelationAddResponse(RelationAddResponse response)
 {
     await SendResponse(response);
 }