Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Program objProgram = new ConsoleApp1.Program();

            Console.WriteLine("Choose Your Options : 1 - Add, 2 - Update, 3 - Delete, 4 - Select \n");
            var option = Console.ReadLine();

            switch (option)
            {
            case "1":
                objProgram.AddCompany();
                break;

            case "2":
                objProgram.UpdateCompany();
                break;

            case "3":
                objProgram.DeleteCompany();
                break;

            case "4":
                objProgram.GetUserDetails();
                break;

            default:
                Main(null);
                break;
            }
            Console.ReadLine();
        }
Exemplo n.º 2
0
        protected override void OnStart(string[] args)
        {
            ConsoleApp1.Program p = new ConsoleApp1.Program();


            //Console.WriteLine("Hello You started a service");
            //Console.ReadLine();
        }