Beispiel #1
0
            protected override bool Update(object newValue)
            {
                switch (Page.AdminPageLevel)
                {
                case AdminPageLevel.State:
                    States.UpdateColumn(StatesColumn, newValue, Page.StateCode);
                    break;

                case AdminPageLevel.County:
                    Counties.UpdateColumn(CountiesColumn, newValue, Page.StateCode, Page.CountyCode);
                    break;

                case AdminPageLevel.Local:
                    LocalDistricts.UpdateColumnByStateCodeLocalKey(LocalDistrictsColumn, newValue,
                                                                   Page.StateCode, Page.LocalKey);
                    break;
                }
                return(true);
            }