Пример #1
0
        static void Delete(int optEntity)
        {
            Console.WriteLine("Insira o id do registro que deseja deletar:");
            var id = Convert.ToInt32(Console.ReadLine());

            switch (optEntity)
            {
            case 1:
                planView.Delete(id);
                break;

            case 2:
                typeView.Delete(id);
                break;

            case 3:
                userView.Delete(id);
                break;

            default:
                break;
            }
        }