public async Task SaveAsync <T>(string filename, T model) { var json = JsonConvert.SerializeObject(model); var encryptedJson = _cryptographyService.Encrypt(json); await _ioService.SaveAsync(filename, encryptedJson); }