How do you do when the user types such a number in the Console to do an action?
For example:
Console.WriteLine("Escreva 1 para acontecer algo, 2 para acontecer outra coisa");
In case I do not need what will happen because I already have code, I am only in doubt as to how to check if the user types 1 or 2, and give an action for a certain number
log.WarnFormat("1 ou 2");
string escreveu = Console.ReadLine();
var numero = 1;
if (numero == 1) cupons();
if (numero == 2) cuponsusuario();