Пример #1
0
        static void MenuOptions_UpdateJob()
        {
            Console.Write("Please enter the id of the object you would like to update:");
            JobDTO dto = JMS_Commands.GetJob(Console.ReadLine());

            Console.WriteLine("Job to update:");
            PrintJob(dto);

            Console.Write("Please enter updated name of Job to add:");
            dto.Name = Console.ReadLine();

            Console.Write("Please enter updated ID of client:");
            dto.ClientID = Console.ReadLine();
            dto.ID       = Guid.NewGuid().ToString();

            JMS_Commands.UpdateJob(dto);


            dto = null;
            GC.Collect();
        }