public void RenameProvider(SharePointProviderInfo sharePointProviderInfo, string newTitle) { using (var dbDao = new SharpBoxAccountDao(CoreContext.TenantManager.GetCurrentTenant().TenantId, FileConstant.DatabaseId)) { dbDao.UpdateProviderInfo(sharePointProviderInfo.ID, newTitle, sharePointProviderInfo.RootFolderType); sharePointProviderInfo.UpdateTitle(newTitle); //This will update cached version too } }
public void RenameProvider(SharpBoxProviderInfo sharpBoxProviderInfo, string newTitle) { using (var dbDao = new SharpBoxAccountDao(TenantProvider.CurrentTenantID, FileConstant.DatabaseId)) { dbDao.UpdateProviderInfo(sharpBoxProviderInfo.ID, newTitle); sharpBoxProviderInfo.UpdateTitle(newTitle); //This will update cached version too } }