public async Task <IActionResult> GetGenericSearch(string moduleName, string clientId)
        {
            try
            {
                string searchedData = HttpContext.Request.Query["search"].ToString();
                var    data         = await _globalGridManager.GetGenericSearchedDataAsync(searchedData, moduleName, clientId);

                //// creating the azioni object passing the related details and description.
                //var azioniDto = await _utilityManager.GetAzioniDtoObject(User, "get", " Generic Search Data");
                //// logging the activity record by the user.
                //await _talentBLLWrapper.AzuiniBll.AzioniInsert(azioniDto);

                return(Ok(data));
            }
            catch (Exception x)
            {
                var errorObj = await _utilityManager.ReturnErrorObj(x, User, "Error Generic Search Data");

                return(BadRequest(errorObj));
            }
        }