Пример #1
0
        public int GetCurrentOrderedSum()
        {
            int sum = 0;

            if (_dishes.Any())
            {
                sum += _dishes.Sum(dish => dish.OrderedPrice * dish.Quantity);
            }

            return(sum);
        }