private void ValidateOrderAndCustomer(long userId, long orderId, CancellationToken cancellationToken) { var customer = _customerFacade.GetCustommerByIdAsync(userId, cancellationToken).Result; var order = _orderFacade.GetOrderByIdAsync(orderId, cancellationToken).Result; // We first check if the order is valid if (order.CustomerSid != customer.Sid) { throw new ArgumentException(string.Format(OrderErrorMessages.OrderNotOwnedByUser, userId, orderId)); } }