/// <summary> /// Returns a SnackBarConfiguration object /// </summary> /// <returns>A SnackBarConfiguration instance</returns> public static SnackBarConfiguration GetConfiguration() { //Instantiating a Configuration object SnackBarConfiguration snackBarConfiguration = new SnackBarConfiguration(); string connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["Development"].ConnectionString; snackBarConfiguration.ConnectionString = connectionString; return snackBarConfiguration; }
public DefaultController() { this.configuration = Util.GetConfiguration(); this.Connection = new SqlConnection(this.configuration.ConnectionString); }