Пример #1
0
        public IActionResult ConnectTest(DbBackupConfig config)
        {
            ConfigUtil.Write(config);

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

            return(Content(result.ToString()));
        }
Пример #2
0
        public IActionResult SaveConfig(IFormCollection form)
        {
            ConfigUtil.Write(FormUtil.ToModel <DbBackupConfig>(form));

            return(RedirectToAction("Index"));
        }