Ejemplo n.º 1
0
            /// <summary>
            /// 取得站點資料
            /// </summary>
            /// <param name="id">The identifier.</param>
            /// <returns></returns>
            public static BusStopEntity Get(int id)
            {
                BusStopEntity entity = null;

                using (var openData = new Stop())
                {
                    var table = openData.GetById(id);

                    entity = table.ToList <BusStopEntity>().FirstOrDefault();
                }

                return(entity);
            }