Example #1
0
        public async Task <int> GetOrderTotalCoastInCents(OrderModel orderModel)
        {
            int totalPrice = 0;

            foreach (OrderItemsModel orderItems in orderModel.OrderItemsModel)
            {
                totalPrice += await _printingEditionRepository.GetPriceInCentes(orderItems.PrintingEditionId) * orderItems.Amount;
            }
            return(totalPrice);
        }