public async Task <ActionResult <int> > GetBadgeAmount(Guid entryId)
        {
            try
            {
                var config = await _workbenchAppService.GetComponentConfigAsync(entryId);

                if (config == null || config.DataSources == null)
                {
                    return(0);
                }

                var result = await _badgeApiClient.GetAmountAsync(config);

                if (result == null)
                {
                    return(0);
                }

                return(result.Value);
            }
            catch (Exception ex)
            {
                return(BadRequest(LogError(_logger, ex)));
            }
        }
        public async Task <ActionResult <List <TodoListVM> > > GetPendingAsync(Guid appId)
        {
            try
            {
                var config = await _workbenchAppService.GetComponentConfigAsync(appId);

                if (config == null)
                {
                    return(NotFound(new { message = "componentConfigId Not Found" }));
                }
                var list = await _todoApiClient.GetPendingListAsync(config);

                return(list);
            }
            catch (Exception ex)
            {
                return(BadRequest(LogError(_logger, ex)));
            }
        }