public int GetCurrentOrderedSum() { int sum = 0; if (_dishes.Any()) { sum += _dishes.Sum(dish => dish.OrderedPrice * dish.Quantity); } return(sum); }
public void AddParameterToInputs(Input_ParamDefBase inParam) { inParam.IndexInDoubleArray = InputDefs.Sum(a => a.VarCount); InputDefs.Add(inParam); }