public async Task <BodyDto> Handle(GetBodyCommand request, CancellationToken cancellationToken) { var bodyData = await _scraperService.GetBodyData(request.Text, request.ScrapeType); BodyDto dto = new(); dto.Body = bodyData.Body; dto.OccurenceList = bodyData.BodyOccurence.Select((value, index) => new OccurenceDto { No = index + 1, Word = value.Key, Occurence = value.Value }).ToList(); return(dto); }