Esempio n. 1
0
        public IActionResult ConnectTest(DbBackupConfig config)
        {
            ConfigUtil.Write(config);

            bool result = DbFactory.GetDbInstance().ConnectTest();

            return(Content(result.ToString()));
        }
Esempio n. 2
0
        public IActionResult SaveConfig(IFormCollection form)
        {
            ConfigUtil.Write(FormUtil.ToModel <DbBackupConfig>(form));

            return(RedirectToAction("Index"));
        }