private AcessDBHelper GetDBHelper() { if (null == heper) { heper = new AcessDBHelper(); } return(heper); }
public ActionResult GetData() { heper = new AcessDBHelper(); currentDt = heper.QueryData(heper.SelectJYSINfo("Exchange")); var item = new List <MapItem>(); for (int i = 0; i < currentDt.Rows.Count; i++) { var mapinfo = GetMapItemInfo(currentDt.Rows[i], currentDt.Rows.Count - i); if (!item.Select(_ => _.City).Contains(mapinfo.City) && !item.Select(_ => _.Loc).Contains(mapinfo.Loc)) { item.Add(mapinfo); } } return(Json(item)); }