예제 #1
0
        public ActionResult RegistrationHelpToggle(int id)
        {
            CurrentDatabase.ToggleUserPreference("ShowRegistrationHelp");
            var m = new SettingsRegistrationModel(id);

            return(PartialView("Registration/Registration", m));
        }
예제 #2
0
        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));
        }
예제 #3
0
 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));
     }
 }
예제 #4
0
        public ActionResult RegistrationEdit(int id)
        {
            var m = new SettingsRegistrationModel(id);

            return(PartialView("Registration/RegistrationEdit", m));
        }
예제 #5
0
        public ActionResult Registration(int id)
        {
            var m = new SettingsRegistrationModel(id, CurrentDatabase);

            return(PartialView("Registration/Registration", m));
        }