I simply need to use enum with entered number, but I don't know how to convert. Do I have to create an additional variable of int and than convert?
public enum Actions
{
delete,
add,
edit
};
Actions ac = Actions.Parse(Concole.Readline());
switch (ac)
{
case Actions.delete:
int k = int.Parse(Console.ReadLine());
Delete(flights[k]);
Console.WriteLine("");
break;
case 2:
Add();
Console.WriteLine("");
break;
case 3:
Edit();
Console.WriteLine("");
break;
default:
Console.WriteLine("Incorrect number!");
break;
}