Exemplo n.º 1
0
        public ActionResult GeneralHelpToggle(int id)
        {
            CurrentDatabase.ToggleUserPreference("ShowGeneralHelp");
            var m = new SettingsGeneralModel(CurrentDatabase, id);

            return(PartialView("Settings/General", m));
        }
Exemplo n.º 2
0
        public ActionResult GeneralHelpToggle(int id)
        {
            DbUtil.Db.ToggleUserPreference("ShowGeneralHelp");
            var m = new SettingsGeneralModel(id);

            return(PartialView("Settings/General", m));
        }
Exemplo n.º 3
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));
 }
Exemplo n.º 4
0
        public ActionResult GeneralEdit(int id)
        {
            var m = new SettingsGeneralModel(id);

            return(PartialView("Settings/GeneralEdit", m));
        }
Exemplo n.º 5
0
        public ActionResult General(int id)
        {
            var m = new SettingsGeneralModel(CurrentDatabase, id);

            return(PartialView("Settings/General", m));
        }