Exemplo n.º 1
0
        public async Task DeleteOrder(int orderId)
        {
            var order = await this.GetOrderByIdAsync(orderId);

            await orderItemService.DeleteOrderItemsByOrderId(orderId);

            orderRepository.Delete(order);

            await orderItemRepository.SaveChangesAsync();
        }