private static string GetStringNumericallyDoubled(string input) { var intValue = StringTransformers.StringToInt(input); if (intValue == null) { return("Invalid"); } return((intValue.Value * 2).ToString()); }
private static string GetTripledAndStacked(string input) { if (input == null) { return("Invalid"); } var intValue = StringTransformers.StringToInt(input); if (intValue == null) { return("Invalid"); } var tripledAndStackedString = GetStringStacked((intValue * 3).ToString()); if (tripledAndStackedString == null) { return("Invalid"); } return(tripledAndStackedString); }