IBE.SQL.EliteDBIO.GetSystemnameFromStation C# (CSharp) Method

GetSystemnameFromStation() public method

returns the name of a system through a given station-id
public GetSystemnameFromStation ( int stationID ) : String
stationID int
return String
        public String GetSystemnameFromStation(int stationID)
        {
            try
            {
                return Program.DBCon.Execute<String>("select systemname from tbSystems Sy, tbStations St" +
                                                     " where Sy.id = St.System_id" +
                                                     " and   St.id = " + stationID).ToString();
            }
            catch (Exception ex)
            {
                throw new Exception("Error while getting a systemname from a station id", ex);
            }
        }