public async Task <IActionResult> UpdateGridSearches(GlobalGridMasterDto globalGridDto)
        {
            try
            {
                if (globalGridDto == null)
                {
                    return(NotFound());
                }
                await _globalGridManager.UpdateGridSearchesDataAsync(globalGridDto);

                // creating the azioni object passing the related details and description.
                var azioniDto = _utilityManager.GetAzioniDtoObject(User, "update", " search filter " + globalGridDto.SearchName);
                // logging the activity record by the user.
                await _azioniManager.AzioniInsert(azioniDto);

                return(Ok());
            }
            catch (Exception x)
            {
                var errorObj = await _utilityManager.ReturnErrorObj(x, User, "Update Search Filter " + globalGridDto.SearchName);

                return(BadRequest(errorObj));
            }
        }