Пример #1
0
        static void MenuOptions_GetClient()
        {
            Console.Write("Please enter ID of Client:");
            string    idC  = Console.ReadLine();
            ClientDTO dtoC = JMS_Commands.GetClient(idC);

            if (dtoC != null)
            {
                PrintClient(dtoC);
            }
            else
            {
                Console.WriteLine("No Results.");
            }
        }
Пример #2
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();
        }