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

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

            return(result);
        }