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

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