public async Task <SingleLogDto> Handle(GetLogQuery request, CancellationToken cancellationToken) { var log = await _dbWrapper.GetSingle(request.Id); var logDto = new SingleLogDto { Id = log.Id, CreatedDate = log.CreatedDate, HostName = log.HostName, Severity = log.Severity, Message = log.Message }; return(logDto); }