Пример #1
0
        public async Task <bool> RestoreBackup(string fromPath)
        {
            if (!CanSync())
            {
                return(false);
            }
            var toPath = IocManager.Container.Resolve <IFileHelper>().GetLocalFilePath(AppSettings.Bookshelft.SqlLiteFilename);

            return(await _cloudStorageService.RestoreFile(toPath, fromPath));
        }