Inheritance: AtomSite.WebCore.ConfigModel
 public ActionResult Config(GA4AtomSiteConfigModel m)
 {
     if (m.IncludePath != null)
     {
         var include = AppService.GetInclude<GA4AtomSiteInclude>(m.IncludePath);
         m.GoogleAccountID = include.GoogleAccountID;
     }
     return PartialView("GA4AtomSiteConfig", m);
 }
        public ActionResult PostConfig(GA4AtomSiteConfigModel m)
        {
            if (string.IsNullOrEmpty(m.GoogleAccountID) || m.GoogleAccountID.Trim().Length == 0)
                ModelState.AddModelError("GoogleAccountID", "Please supply a Google Account ID to track.");

            if (ModelState.IsValid)
            {
                var appSvc = AppServiceRepository.GetService();
                var include = appSvc.GetInclude<GA4AtomSiteInclude>(m.IncludePath);
                include.GoogleAccountID = m.GoogleAccountID;
                AppServiceRepository.UpdateService(appSvc);
                return Json(new { success = true, includePath = m.IncludePath });
            }
            return PartialView("GA4AtomSiteConfig", m);
        }