public Get_OutGetStationsOfJiaoJu GetStationsOfJiaoJu(string data) { Get_OutGetStationsOfJiaoJu json = new Get_OutGetStationsOfJiaoJu(); try { Get_InGetStationsOfJiaoJu input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InGetStationsOfJiaoJu>(data); DBStation db = new DBStation(); json.data = db.GetStationsOfJiaoJu(input.strTrainJiaoluGUID); json.result = "0"; json.resultStr = "返回成功"; } catch (Exception ex) { json.result = "1"; json.resultStr = "提交失败:" + ex.Message; } return(json); }
public Get_Out GetStations(string data) { Get_Out json = new Get_Out(); try { Get_In input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_In>(data); DBStation db = new DBStation(); json.data = db.GetStationList(); json.result = "0"; json.resultStr = "返回成功"; } catch (Exception ex) { json.result = "1"; json.resultStr = "提交失败:" + ex.Message; } return(json); }