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()); }
public async void DiagramItemAddResponse(DiagramItemAddResponse response) { await SendResponse(response); }