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