@@ -64,8 +64,7 @@ public JsonResult Query()
6464 /// <param name="searchType"></param>
6565 /// <param name="model"></param>
6666 /// <returns></returns>
67- [ HttpPost ]
68- [ ValidateAntiForgeryToken ]
67+ [ HttpPost , ValidateAntiForgeryToken ]
6968 public JsonResult Query ( string autoComplete , string FilterList , string searchType )
7069 {
7170 ViewBag . Title = PresentationModel . GetViewTitleForTenant ( "Search" , this . Session . GetTenant ( ) ) ;
@@ -126,7 +125,7 @@ public JsonResult Query(string autoComplete, string FilterList, string searchTyp
126125 /// <param name="searchType"></param>
127126 /// <param name="model"></param>
128127 /// <returns></returns>
129- [ HttpPost ]
128+ [ HttpPost , ValidateAntiForgeryToken ]
130129 public JsonResult FilterByDropDownList ( string SelectedFilter , string searchType )
131130 {
132131 ViewBag . Title = PresentationModel . GetViewTitleForTenant ( "Search" , this . Session . GetTenant ( ) ) ;
@@ -143,7 +142,7 @@ public JsonResult FilterByDropDownList(string SelectedFilter, string searchType)
143142 /// </summary>
144143 /// <param name="model"></param>
145144 /// <returns></returns>
146- [ HttpPost ]
145+ [ HttpPost , ValidateAntiForgeryToken ]
147146 public JsonResult _AutoCompleteAjaxLoading ( string text )
148147 {
149148 ISearchProvider provider = IoCFactory . Container . ResolveForSession < ISearchProvider > ( ) ;
@@ -159,7 +158,7 @@ public JsonResult _AutoCompleteAjaxLoading(string text)
159158 /// <param name="value">consist the searchType</param>
160159 /// <param name="model"></param>
161160 /// <returns></returns>
162- [ HttpPost ]
161+ [ HttpPost , ValidateAntiForgeryToken ]
163162 public void ChangeSearchValuesACBySearchType ( string value )
164163 {
165164 ISearchProvider provider = IoCFactory . Container . ResolveForSession < ISearchProvider > ( ) ;
@@ -179,8 +178,7 @@ public void ChangeSearchValuesACBySearchType(string value)
179178 /// <param name="IsChecked">show the status of the checkbox (true = selected/false=deselected)</param>
180179 /// <param name="model"></param>
181180 /// <returns></returns>
182- [ HttpPost ]
183- [ ValidateAntiForgeryToken ]
181+ [ HttpPost , ValidateAntiForgeryToken ]
184182 public JsonResult ToggleFacet ( string SelectedItem , string Parent )
185183 {
186184 ISearchProvider provider = IoCFactory . Container . ResolveForSession < ISearchProvider > ( ) ;
@@ -261,8 +259,7 @@ public JsonResult OnSelectTreeViewItem(string SelectedItem, string Parent)
261259 /// </summary>
262260 /// <param name="model"></param>
263261 /// <returns></returns>
264- [ HttpPost ]
265- [ ValidateAntiForgeryToken ]
262+ [ HttpPost , ValidateAntiForgeryToken ]
266263 public JsonResult AddFacetsToSearch ( )
267264 {
268265 ViewBag . Title = PresentationModel . GetViewTitleForTenant ( "Search" , this . Session . GetTenant ( ) ) ;
@@ -373,8 +370,7 @@ public JsonResult RemoveSearchCriteria(string value, string parent)
373370 #endregion BreadcrumbView
374371
375372 #region Datagrid
376- [ HttpPost ]
377- [ ValidateAntiForgeryToken ]
373+ [ HttpPost , ValidateAntiForgeryToken ]
378374 public JsonResult GetTableData ( )
379375 {
380376 ISearchProvider provider = IoCFactory . Container . ResolveForSession < ISearchProvider > ( ) ;
@@ -395,8 +391,7 @@ public JsonResult SetResultViewVar(string key, string value)
395391 #region Properties _searchProperties
396392
397393 //+++++++++++++++++++++ Properties Sliders Action +++++++++++++++++++++++++++
398- [ HttpPost ]
399- [ ValidateAntiForgeryToken ]
394+ [ HttpPost , ValidateAntiForgeryToken ]
400395 public JsonResult FilterByRangeSlider ( int start , int end , string parent )
401396 {
402397 ISearchProvider provider = IoCFactory . Container . ResolveForSession < ISearchProvider > ( ) ;
@@ -405,8 +400,7 @@ public JsonResult FilterByRangeSlider(int start, int end, string parent)
405400 return j ;
406401 }
407402
408- [ HttpPost ]
409- [ ValidateAntiForgeryToken ]
403+ [ HttpPost , ValidateAntiForgeryToken ]
410404 public JsonResult FilterBySlider ( int value , string parent )
411405 {
412406 ISearchProvider provider = IoCFactory . Container . ResolveForSession < ISearchProvider > ( ) ;
@@ -419,8 +413,7 @@ public JsonResult FilterBySlider(int value, string parent)
419413 }
420414
421415 //+++++++++++++++++++++Properties DropDown Action +++++++++++++++++++++++++++
422- [ HttpPost ]
423- [ ValidateAntiForgeryToken ]
416+ [ HttpPost , ValidateAntiForgeryToken ]
424417 public JsonResult FilterByDropDown ( string value , string node )
425418 {
426419 ISearchProvider provider = IoCFactory . Container . ResolveForSession < ISearchProvider > ( ) ;
@@ -433,8 +426,7 @@ public JsonResult FilterByDropDown(string value, string node)
433426 }
434427
435428 //+++++++++++++++++++++Properties RadioButton Action +++++++++++++++++++++++++++
436- [ HttpPost ]
437- [ ValidateAntiForgeryToken ]
429+ [ HttpPost , ValidateAntiForgeryToken ]
438430 public JsonResult FilterByRadioButton ( string value , string node , bool isChecked )
439431 {
440432 ISearchProvider provider = IoCFactory . Container . ResolveForSession < ISearchProvider > ( ) ;
@@ -446,8 +438,7 @@ public JsonResult FilterByRadioButton(string value, string node, bool isChecked)
446438
447439 //+++++++++++++++++++++Properties ´CheckButton Action +++++++++++++++++++++++++++
448440
449- [ HttpPost ]
450- [ ValidateAntiForgeryToken ]
441+ [ HttpPost , ValidateAntiForgeryToken ]
451442 public JsonResult FilterByCheckBox ( string value , string node , bool isChecked )
452443 {
453444 ISearchProvider provider = IoCFactory . Container . ResolveForSession < ISearchProvider > ( ) ;
0 commit comments