public async Task <IActionResult> GetDynamicGroupButton(string tableName, string clientId, int pageIndex, int pageSize, [FromBody] FilterSortingDto filterSortingDto)
        {
            try
            {
                var data = await _globalGridManager.GetDynamicGroupButtonAsync
                               (tableName, clientId, pageIndex, pageSize, filterSortingDto);

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


                return(Ok(data));
            }
            catch (Exception x)
            {
                var errorObj = await _utilityManager.ReturnErrorObj(x, User, "Dynamic Group Button");

                return(BadRequest(errorObj));
            }
        }