Exemple #1
0
 /// <summary>
 /// Used to save records in city table
 /// </summary>
 public void SaveCityAllRecord()
 {
     try
     {
         CityData          cityData            = new CityData();
         List <CityRecord> cityRecordList      = cityData.LoadPortalContent();
         List <CityRecord> existCityRecordList = GetEntity();
         if (existCityRecordList.Count < 1)
         {
             AddItems(cityRecordList);
         }
         else
         {
             UpdateItems(cityRecordList, existCityRecordList);
         }
     }
     catch (Exception ex)
     {
         string message = ex.Message;
     }
 }
Exemple #2
0
 /// <summary>
 /// Used to save records in city table
 /// </summary>
 public void SaveCityAllRecord()
 {
     try
     {
         CityData cityData = new CityData();
         List<CityRecord> cityRecordList = cityData.LoadPortalContent();
         List<CityRecord> existCityRecordList = GetEntity();
         if (existCityRecordList.Count < 1)
         {
             AddItems(cityRecordList);
         }
         else
         {
             UpdateItems(cityRecordList, existCityRecordList);
         }
     }
     catch (Exception ex)
     {
         string message = ex.Message;
     }
 }