Beispiel #1
0
        public JsonResult GeofenceAlertHistoryByTrackID(string TrackID, string DateFrom, string DateTo, string geofenceID)
        {
            bool   success  = true;
            string _Message = string.Empty;
            List <GeofenceAlertHistoryModel> data = new List <GeofenceAlertHistoryModel>();

            try
            {
                data = GeofenceAlertHistoryModel.Get_GeofenceAlertHistoryByTrackID(TrackID, DateFrom, DateTo, geofenceID);
            }
            catch (Exception ex)
            {
                _Message = ex.Message;
                success  = false;
            }

            return(Json(new { success = success, message = _Message, total = data.Count, results = data }, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public JsonResult GeofenceAlertHistoryByAccNo(string AccNo)
        {
            bool   success  = true;
            string _Message = string.Empty;
            List <GeofenceAlertHistoryModel> data = new List <GeofenceAlertHistoryModel>();

            try
            {
                data = GeofenceAlertHistoryModel.Get_GeofenceAlertHistoryByAccNo(AccNo);
            }
            catch (Exception ex)
            {
                _Message = ex.Message;
                success  = false;
            }

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