public ActionResult RegistrationHelpToggle(int id) { CurrentDatabase.ToggleUserPreference("ShowRegistrationHelp"); var m = new SettingsRegistrationModel(id); return(PartialView("Registration/Registration", m)); }
public ActionResult UpdateOrgIds(int id, string list) { CurrentDatabase.SetCurrentOrgId(id); var m = new SettingsRegistrationModel(id); m.Org.OrgPickList = list; CurrentDatabase.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 Registration(int id) { var m = new SettingsRegistrationModel(id, CurrentDatabase); return(PartialView("Registration/Registration", m)); }