Example #1
0
        public async Task <ActionResult> Delete(int projectId, int plotFolderId, [UsedImplicitly] IFormCollection collection)
        {
            try
            {
                await _plotService.DeleteFolder(projectId, plotFolderId);

                return(RedirectToAction("Index", "PlotList", new { projectId }));
            }
            catch (Exception)
            {
                return(await Delete(projectId, plotFolderId));
            }
        }