Пример #1
0
        public async Task <IActionResult> AddAction(
            [FromBody] UserActionViewModel model)

        {
            await _actionService.AddAction(model).ConfigureAwait(false);

            return(Ok());
        }
Пример #2
0
 public ContentResult Add(ActionDto dto)
 {
     _actionService.AddAction(dto);
     return(ResultSuccess <string>("添加成功"));
 }
Пример #3
0
        public IActionResult DiagramSetTitle(DiagramSetTitleRequest request)
        {
            var response = new DiagramSetTitleResponse
            {
                Success      = true,
                ClientId     = request.ClientId,
                ActionId     = request.ActionId,
                DiagramId    = request.DiagramId,
                DiagramTitle = request.DiagramTitle
            };

            _mainNotifier.DiagramSetTitleResponse(response);
            var diagram = _diagramService.GetDiagramById(request.DiagramId);

            _diagramService.SetTitle(diagram, request.DiagramTitle);
            var action = new DiagramSetTitleAction(request.ActionId, request);

            _actionService.AddAction(diagram, action);

            return(Ok());
        }