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

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

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

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

            return(result);
        }