public async Task <GenericServiceResponse> GetLead(Guid leadGuid, LogCommand logCommand)
        {
            const string method = "GetLead";

            try
            {
                logCommand.LogMessage = string.Format($"{Service}.{method} Starting input parameter leadGuid = {0}", leadGuid);
                _logHandler.HandleLog(logCommand);

                var lead = await _leadRepository.GetLead(leadGuid, logCommand);

                var response = ServiceHelper.SetGenericServiceResponseForEntity(lead);
                response.Success = true;

                logCommand.LogMessage = string.Format($"{Service}.{method} completed");
                _logHandler.HandleLog(logCommand);

                return(response);
            }
            catch (Exception ex)
            {
                AppLogger.LogException(_loggingInstance, ex.Message, ex);
                return(ServiceHelper.SetErrorGenericServiceResponse(ex));
            }
        }
        public async Task <IEnumerable <LeadInformationResponse> > Handle(LeadInformationRequest request, CancellationToken cancellationToken = default)
        {
            var flatItem = await _leadRepository.GetLead();

            var leadInformation = _mapper.MapAll <LeadInformationResponse>(flatItem);

            return(leadInformation);
        }