public IActionResult SaveConfig(IFormCollection form) { ConfigUtil.Write(FormUtil.ToModel <DbBackupConfig>(form)); return(RedirectToAction("Index")); }
public IActionResult GetConfig() { return(Json(ConfigUtil.GetConfig())); }
public IActionResult SaveConfig(IFormCollection form) { ConfigUtil.Write(FormUtil.ToModel <DbBackupConfig>(form)); return(RedirectToAction("Index")); }
public IActionResult GetConfig() { return(Json(ConfigUtil.GetConfig())); }