public async Task <double> Handle(GetPriceCommand request, CancellationToken cancellationToken) { var currency = await _context.Currencies.SingleOrDefaultAsync(f => f.DisplayUrl == request.DisplayUrl, cancellationToken); if (currency == null) { throw new NotFoundException(nameof(Currency), request.DisplayUrl); } return(_cryptoService.ConvertToToman(request.Amount, currency.Symbol) / 10); }