private async Task <bool> ValidationOrder(OrderProduct orderProduct, CancellationToken cancellationToken) { var order = await _orderProductRepository.GetByIdAsync(orderProduct.Id); return(order?.Id != orderProduct.Id ? false : true); }
private async Task <bool> ValidationOrder(OrderProduct orderProduct, CancellationToken cancellationToken) { var order = await _orderProductRepository.GetByIdAsync(orderProduct.Id); return(order?.Id != orderProduct.Id ? false : true); }