Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }