Example #1
0
 public string GetGasStation(string stGasStationID, string stGasStoreID)
 {
     if (stGasStoreID == null)
     {
         if (stGasStationID == null)
         {
             m_dataResponse = m_dalGasStation.GetGasStations();
         }
         else
         {
             m_dataResponse = m_dalGasStation.GetGasStation(stGasStationID);
         }
     }
     else
     {
         m_dataResponse = m_dalGasStation.GetGasStationsOfStore(stGasStoreID);
     }
     return(JSonHelper.ConvertObjectToJSon(m_dataResponse));
 }