Ejemplo n.º 1
0
        private async Task <ActionResult> CreateElementImpl(int projectId, int plotFolderId, string content, string todoField, ICollection <string> targets,
                                                            PlotElementTypeView elementType)
        {
            var targetGroups = targets.OrEmptyList().GetUnprefixedGroups();
            var targetChars  = targets.OrEmptyList().GetUnprefixedChars();
            await
            _plotService.CreatePlotElement(projectId, plotFolderId, content, todoField, targetGroups, targetChars,
                                           (PlotElementType)elementType);

            return(ReturnToPlot(projectId, plotFolderId));
        }