Пример #1
0
 public ActionResult GeneralUpdate(SettingsGeneralModel m)
 {
     if (!m.Org.LimitToRole.HasValue())
         m.Org.LimitToRole = null;
     DbUtil.LogActivity($"Update SettingsGeneral {m.Org.OrganizationName}");
     if (ModelState.IsValid)
     {
         m.Update();
         return View("Settings/General", m);
     }
     return PartialView("Settings/GeneralEdit", m);
 }
Пример #2
0
 public ActionResult GeneralEdit(int id)
 {
     var m = new SettingsGeneralModel(id);
     return PartialView("Settings/GeneralEdit", m);
 }
Пример #3
0
 public ActionResult GeneralHelpToggle(int id)
 {
     DbUtil.Db.ToggleUserPreference("ShowGeneralHelp");
     var m = new SettingsGeneralModel(id);
     return PartialView("Settings/General", m);
 }