public JsonResult GeoFenceAreaSelectByAccountNo(string AccountNo)
        {
            bool   success  = true;
            string _Message = string.Empty;
            List <GeoFenceAreaModel> data = new List <GeoFenceAreaModel>();

            try
            {
                data = GeoFenceAreaModel.GeoFenceArea_SelectByAccountNo(AccountNo);
            }
            catch (Exception ex)
            {
                _Message = ex.Message;
                success  = false;
            }

            return(Json(new { success = success, message = _Message, total = data.Count, results = data }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult GeoFenceAreaUpdate(int ID, string AccountNo, string FencePath, string FenceName, string Fencelenght, string ShapeType)
        {
            bool   success  = true;
            string _Message = string.Empty;
            List <GeoFenceAreaModel> data = new List <GeoFenceAreaModel>();

            try
            {
                success = GeoFenceAreaModel.GeoFenceArea_Update(ID, AccountNo, FencePath, FenceName, Fencelenght, ShapeType);
            }
            catch (Exception ex)
            {
                _Message = ex.Message;
                success  = false;
            }

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