示例#1
0
        public IActionResult SaveConfig(IFormCollection form)
        {
            ConfigUtil.Write(FormUtil.ToModel <DbBackupConfig>(form));

            return(RedirectToAction("Index"));
        }
示例#2
0
 public IActionResult GetConfig()
 {
     return(Json(ConfigUtil.GetConfig()));
 }