public JsonResult fcldata(fcldata_P p)
        {
            WebReturnModel <fcldata_R> model = new WebReturnModel <fcldata_R>()
            {
                ReturnModel = TrafficInfoInstance.fcldata(p)
            };

            return(Json(model, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public fcldata_R fcldata(fcldata_P p)
        {
            fcldata_R model = null;

            p.key = GetSettings.CertKey;
            ResultXmlWithUpdateModel xmlResult = GetResultXmlWithUpdate(TrafficInfoDirection.fcldata, p.ToXmlFileName(), ClassSerialize(p));

            if (xmlResult.IsSuccess)
            {
                model = XmlToModel <fcldata_R>(xmlResult.ResultText);
            }

            return(model);
        }