public static string IsNameNull() { CartItem product = new CartItem(); string name = Console.ReadLine(); product.Name = name; bool isEmptyOrNull = String.IsNullOrEmpty(name); if (isEmptyOrNull == true) { Console.WriteLine($"\"{product.Name}\": is not a valid product name."); ConsoleLogging.GetName(product); return(product.Name); } return(product.Name); }
public static void CreateProduct(CartItem product) { ConsoleLogging.GetName(product); ConsoleLogging.GetQuantity(product); ConsoleLogging.GetPrice(product); }