示例#1
0
        public List <GPS_DATA> get_GPS_DATA()
        {
            List <GPS_DATA> listGPS_DATA = null;

            try
            {
                return(listGPS_DATA = GPS_DATA_LN.get_GPS_DATA());
            }
            catch
            {
                throw new HttpRequestException(HttpStatusCode.NotFound.ToString());
            }
        }
示例#2
0
        public GPS_DATA get_GPS_DATA_BY_ID(string id)
        {
            List <GPS_DATA> listGPS_DATA = null;
            GPS_DATA        oGPS_DATA    = new GPS_DATA();

            try
            {
                listGPS_DATA = GPS_DATA_LN.get_GPS_DATA(id);
                if (listGPS_DATA != null && listGPS_DATA.Count > 0)
                {
                    oGPS_DATA = listGPS_DATA.FirstOrDefault();
                }
                return(oGPS_DATA);
            }
            catch
            {
                throw new HttpRequestException(HttpStatusCode.NotFound.ToString());
            }
        }