Exemplo n.º 1
0
        public async Task <ActionResult> PublishElement(int plotelementid, int plotFolderId, int projectId)
        {
            try
            {
                await _plotService.PublishElement(projectId, plotFolderId, plotelementid, CurrentUserId);

                return(ReturnToPlot(plotFolderId, projectId));
            }
            catch (Exception)
            {
                return(await Edit(projectId, plotFolderId));
            }
        }