示例#1
0
        public async Task SaveAsync <T>(string filename, T model)
        {
            var json = JsonConvert.SerializeObject(model);

            var encryptedJson = _cryptographyService.Encrypt(json);

            await _ioService.SaveAsync(filename, encryptedJson);
        }