Esempio n. 1
0
        public ActionResult EditConfig(ConnectionStrings conn)
        {
            if (!string.IsNullOrEmpty(conn.connectionStringName))
            {
                DataAccess.ConfigurationOperator configOper = new DataAccess.ConfigurationOperator();
                configOper.SetConnectionString(conn.connectionStringName, conn.connectionString);
                configOper.Save();
            }

            return RedirectToAction("Config");
        }
Esempio n. 2
0
        public ActionResult EditConfig(ConnectionStrings conn)
        {
            if (!string.IsNullOrEmpty(conn.connectionStringName))
            {
                DataAccess.ConfigurationOperator configOper = new DataAccess.ConfigurationOperator();
                configOper.SetConnectionString(conn.connectionStringName, conn.connectionString);
                configOper.Save();
            }

            return(RedirectToAction("Config"));
        }