public async Task <IActionResult> GetSearchNames([FromBody] GlobalGridPostDto gridPostDto)
        {
            try
            {
                var data = await _globalGridManager.FindByGridFiltriMasterDataAsync(gridPostDto);

                if (data == null)
                {
                    return(NotFound());
                }

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

                return(Ok(data));
            }
            catch (Exception x)
            {
                var errorObj = await _utilityManager.ReturnErrorObj(x, User, "Get Saved Search Names");

                return(BadRequest(errorObj));
            }
        }