Beispiel #1
0
        private void SelectProvince()
        {
            if (String.IsNullOrEmpty(InputModel.Bank.Address.Province))
            {
                if (Provinces.Count > 0)
                {
                    SelectedProvince = Provinces[0];
                }
                return;
            }

            var exist = Provinces.FirstOrDefault(m => m.State == InputModel.Bank.Address.Province);

            SelectedProvince = exist;
        }
 public static Province GetProvince(int ProvinceId)//ajax转int
 {
     return(Provinces.FirstOrDefault(province => province.Id == ProvinceId));
 }