public async Task <OperationResult> Delete(int id) { var core = await _coreHelper.GetCore(); var sdkDbContext = core.DbContextHelper.GetDbContext(); try { await FoldersHelper.DeleteFolder(core, sdkDbContext, id); //await DeleteChildren(id); //await core.FolderDelete(id); return(new OperationResult(true)); } catch (Exception e) { _coreHelper.LogException(e.Message); _logger.LogError(e, e.Message); return(new OperationResult( false, _localizationService.GetString("ErrorWhileRemovingFolder"))); } }