Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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;
     }
 }