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

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

            return(Json(new { success = success, message = _Message, total = data.Count, results = data }, JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        public JsonResult GeofenceInsert(string AccountNo, string TrackID, string TrackItem, string Fencelenght, string FencePath, string ShapeType, string FenceAlertemail, string FenceAlertemail2, string FenceAlertemail3, string FenceAlertPhone, string FenceAlertPhone2, string FenceAlertPhone3, string FenceAlertPhone4, string Createdby, string CreatedOS, string FenceStatus, string SendAlertStatus, string SenderEmail, string Senderphone, string FenceAlertName, string FenceAlertName2, string FenceAlertName3, string FenceAlertName4, string SMSAlertMsg, string FenceName, string FenceAlertResponderRelations, string FenceAlertResponderRelations2, string FenceAlertResponderRelations3, string FenceAlertResponderRelations4)
        {
            bool   success            = true;
            string _Message           = string.Empty;
            List <GeoFenceModel> data = new List <GeoFenceModel>();

            try
            {
                success = GeoFenceModel.Geofence_Insert(AccountNo, TrackID, TrackItem, Fencelenght, FencePath, ShapeType, FenceAlertemail, FenceAlertemail2, FenceAlertemail3, FenceAlertPhone, FenceAlertPhone2, FenceAlertPhone3, FenceAlertPhone4, Createdby, CreatedOS, FenceStatus, SendAlertStatus, SenderEmail, Senderphone, FenceAlertName, FenceAlertName2, FenceAlertName3, FenceAlertName4, SMSAlertMsg, FenceName, FenceAlertResponderRelations, FenceAlertResponderRelations2, FenceAlertResponderRelations3, FenceAlertResponderRelations4);
            }
            catch (Exception ex)
            {
                _Message = ex.Message;
                success  = false;
            }

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