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!" }); }
public WaterViewModel Spray(WaterInputModel model) { return model.GotAHose() ? new WaterViewModel { Do = "Rain on your parade!" } : new WaterViewModel { Do = "Take a wild guess!" }; }