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)); }
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)); }