public ActionResult SettingsOrgUpdate(int id) { var m = new OrganizationModel(id); UpdateModel(m); if (!m.org.LimitToRole.HasValue()) m.org.LimitToRole = null; DbUtil.LogActivity("Update SettingsOrg {0}".Fmt(m.org.OrganizationName)); if (ModelState.IsValid) { m.UpdateSchedules(); DbUtil.Db.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues, m.org.OrgSchedules); return View("SettingsOrg", m); } return View("SettingsOrgEdit", m); }
public ActionResult SettingsMeetingsUpdate(int id) { var m = new OrganizationModel(id); m.schedules.Clear(); UpdateModel(m); m.UpdateSchedules(); DbUtil.Db.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues, m.org.OrgSchedules); DbUtil.LogActivity("Update SettingsMeetings {0}".Fmt(m.org.OrganizationName)); return View("SettingsMeetings", m); //return View("SettingsMeetingsEdit", m); }