private static OrderMessage AskForParameters() { var order = new OrderMessage(); Console.WriteLine("Type the order ID:"); order.Id = Helper.TryParse <int>(Console.ReadLine()); Console.WriteLine("Type the Merchant ID:"); order.MerchantId = Helper.TryParse <int>(Console.ReadLine()); Console.WriteLine("Type the Country Origin:"); order.CountryOrigin = Helper.TryParse <string>(Console.ReadLine()); Console.WriteLine("Type the Country Destination:"); order.CountryDestination = Helper.TryParse <string>(Console.ReadLine()); Console.WriteLine("Type the Amount:"); order.Amount = Helper.TryParse <decimal>(Console.ReadLine()); Console.WriteLine("Type the Number of Items:"); order.NumberOfItems = Helper.TryParse <int>(Console.ReadLine()); return(order); }