Ejemplo n.º 1
0
        static void MenuOptions_UpdateClient()
        {
            Console.Write("Please enter the id of the object you would like to update:");
            ClientDTO client = JMS_Commands.GetClient(Console.ReadLine());

            Console.Write("Client to update:");
            PrintClient(client);

            Console.Write("Please enter updated name of Client to add:");
            client.CompanyName = Console.ReadLine();

            Console.Write("Please enter updated address of client:");
            client.Address = Console.ReadLine();

            JMS_Commands.UpdateClient(client);

            client = null;
            GC.Collect();
        }