Ejemplo n.º 1
0
        public BreatheViewModel Breathe(AirInputModel model)
        {
            var result = model.TakeABreath
                ? new BreatheViewModel { Text = "Breathe in!" }
                : new BreatheViewModel { Text = "Exhale!" };

            return result;
        }
Ejemplo n.º 2
0
        public BreatheViewModel Breathe(AirInputModel model)
        {
            var result = model.TakeABreath
                ? new BreatheViewModel {
                Text = "Breathe in!"
            }
                : new BreatheViewModel {
                Text = "Exhale!"
            };

            return(result);
        }