public Task <EventLogReadModel> Handle(EventLogDetailQuery request, CancellationToken cancellationToken) { EventLog customerEventsLog = _customerEventsLogRepository.Find(request.Id); EventLogReadModel customerEventsLogReadModel = null; if (customerEventsLog != null) { customerEventsLogReadModel = new EventLogReadModel { Id = customerEventsLog.Id, CreatedOn = customerEventsLog.CreatedOn, Data = customerEventsLog.Data, EntityId = customerEventsLog.EntityId, Type = customerEventsLog.Type }; } return(Task.FromResult(customerEventsLogReadModel)); }