Hello, I copy this code from help but I have an error with Connection class, not found.....
public ActionResult Index() {
DashboardCryptoProvider provider = new DashboardCryptoProvider(EncryptionTypes.AES);
Connection connectionName = new Connection { DataSources = new List<DataSourceConnectionString>() };
connectionName.DataSources.Add(new DataSourceConnectionString
{
Name = "Worldwide Car Sales (Random data)",
ConnectionString = "Data Source = .; Integrated Security=True; Initial Catalog = NORTHWND; MultipleActiveResultSets=True"
});
ViewBag.EncryptedString = provider.DoEncryption(Converter.SerializeObject(connectionName));
}
best regards
Oscar