public JsonResult SettingInsertUpdate(string AccountNo, string TrackID, string MarkerPoint, string PanMap, string AttachedLabel, string Interval) { bool success = true; string _Message = string.Empty; List <SettingModel> data = new List <SettingModel>(); try { success = SettingModel.Geofence_SettingInsertUpdate(AccountNo, TrackID, MarkerPoint, PanMap, AttachedLabel, Interval); } catch (Exception ex) { _Message = ex.Message; success = false; } return(Json(new { success = success, message = _Message, total = data.Count, results = data }, JsonRequestBehavior.AllowGet)); }