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

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

            return(result);
        }