public void WaterToMachine(int cup) { if (cup <= 10 && cup >= 1) { sm.WaterSuccessfullyFilled(cup); } else { sm.WaterErrorMessage(); } }