Пример #1
0
        public JsonResult GeofenceRespond(string AccountNo, string TrackID)
        {
            bool   success            = true;
            string _Message           = string.Empty;
            List <GeoFenceModel> data = new List <GeoFenceModel>();

            try
            {
                success = GeoFenceModel.Geofence_OutOfFence_Respond(AccountNo, TrackID);
            }
            catch (Exception ex)
            {
                _Message = ex.Message;
                success  = false;
            }

            return(Json(new { success = success, message = _Message, total = data.Count, results = data }, JsonRequestBehavior.AllowGet));
        }