Exemple #1
0
        public int GetCurrentOrderedSum()
        {
            int sum = 0;

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

            return(sum);
        }
Exemple #2
0
 public void AddParameterToInputs(Input_ParamDefBase inParam)
 {
     inParam.IndexInDoubleArray = InputDefs.Sum(a => a.VarCount);
     InputDefs.Add(inParam);
 }