public async Task <VisitDto> Handle(CreateVisitCommand request, CancellationToken cancellationToken) { var visit = Visit.Create(request.VisitDate, request.UserId, request.PlaceId); await _visitRepository.CreateAsync(visit); return(new VisitDto(visit.VisitId)); }