public ActionResult MainUpdate(OrgMain m) { if (!m.OrganizationName.HasValue()) m.OrganizationName = $"Organization needs a name ({Util.UserFullName})"; m.Update(); DbUtil.LogActivity($"Update OrgMain {m.OrganizationName}"); return PartialView("Settings/Main", m); }
private void populate(int id) { Id = id; DbUtil.Db.SetCurrentOrgId(id); if (Org == null) return; OrgMain = new OrgMain(Org); GroupSelect = GroupSelectCode.Member; IsVolunteerLeader = OrganizationMember.VolunteerLeaderInOrg(DbUtil.Db, Id); }
private void populate(int id) { Id = id; DbUtil.Db.SetCurrentOrgId(id); if (Org == null) { return; } OrgMain = new OrgMain(Org); GroupSelect = GroupSelectCode.Member; IsVolunteerLeader = OrganizationMember.VolunteerLeaderInOrg(DbUtil.Db, Id); }