Пример #1
0
        public IActionResult DeleteFile(long fileIdToDelete)
        {
            if (fileIdToDelete == -1)
            {
                return(RedirectToAction("Index", new { errorId = "FileIdToDelete", errorMsg = "Wybierz plik" }));
            }

            treeService.DeleteFile(fileIdToDelete);

            return(RedirectToAction("Index"));
        }