public async Task <Response <Domain.Entities.Log> > Handle(GetLogByIdQuery query, CancellationToken cancellationToken)
            {
                var Log = await _LogRepository.GetByIdAsync(query.Id);

                if (Log == null)
                {
                    throw new ApiException($"Log Not Found.");
                }
                return(new Response <LogModule.Domain.Entities.Log>(Log));
            }
            public async Task <Response <int> > Handle(DeleteLogByIdCommand command, CancellationToken cancellationToken)
            {
                var Log = await _LogRepository.GetByIdAsync(command.Id);

                if (Log == null)
                {
                    throw new ApiException($"Log Not Found.");
                }
                await _LogRepository.DeleteAsync(Log);

                return(new Response <int>(Log.Id));
            }