public ActionResult UpdateOrgIds(int id, string list) { DbUtil.Db.SetCurrentOrgId(id); var m = new SettingsRegistrationModel(id); m.Org.OrgPickList = list; DbUtil.Db.SubmitChanges(); return PartialView("DisplayTemplates/OrgPickList", m); }
public ActionResult RegistrationUpdate(SettingsRegistrationModel m) { DbUtil.LogActivity($"Update Registration {m.Org.OrganizationName}"); try { m.Update(); if (!m.Org.NotifyIds.HasValue() && m.Org.RegistrationTypeId > 0) ModelState.AddModelError("Form", needNotify); return PartialView("Registration/Registration", m); } catch (Exception ex) { ModelState.AddModelError("Form", ex.Message); return PartialView("Registration/RegistrationEdit", m); } }
public ActionResult RegistrationEdit(int id) { var m = new SettingsRegistrationModel(id); return PartialView("Registration/RegistrationEdit", m); }
public ActionResult RegistrationHelpToggle(int id) { DbUtil.Db.ToggleUserPreference("ShowRegistrationHelp"); var m = new SettingsRegistrationModel(id); return PartialView("Registration/Registration", m); }