Пример #1
0
        public JsonResult GeofenceUpdate(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 Createdby, string CreatedOS, string FenceStatus, string SendAlertStatus, string SenderEmail, string Senderphone)
        {
            bool   success            = true;
            string _Message           = string.Empty;
            List <GeoFenceModel> data = new List <GeoFenceModel>();

            try
            {
                success = GeoFenceModel.Geofence_Update(AccountNo, TrackID, TrackItem, Fencelenght, FencePath, ShapeType, FenceAlertemail, FenceAlertemail2, FenceAlertemail3, FenceAlertPhone, FenceAlertPhone2, FenceAlertPhone3, Createdby, CreatedOS, FenceStatus, SendAlertStatus, SenderEmail, Senderphone);
            }
            catch (Exception ex)
            {
                _Message = ex.Message;
                success  = false;
            }

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