Example #1
0
 public WaterViewModel <string> Spray(WaterInputModel model)
 {
     return(model.GotAHose()
                ? new WaterViewModel <string> {
         Do = "Rain on your parade!"
     }
                : new WaterViewModel <string> {
         Do = "Take a wild guess!"
     });
 }
Example #2
0
 public WaterViewModel Spray(WaterInputModel model)
 {
     return model.GotAHose()
                ? new WaterViewModel { Do = "Rain on your parade!" }
                : new WaterViewModel { Do = "Take a wild guess!" };
 }