public IActionResult DeleteFile(long fileIdToDelete) { if (fileIdToDelete == -1) { return(RedirectToAction("Index", new { errorId = "FileIdToDelete", errorMsg = "Wybierz plik" })); } treeService.DeleteFile(fileIdToDelete); return(RedirectToAction("Index")); }