static void MenuOptions_GetJob() { Console.Write("Please enter ID of Job:"); string id = Console.ReadLine(); JobDTO dto = JMS_Commands.GetJob(id); if (dto != null) { PrintJob(dto); } else { Console.WriteLine("No Results."); } }
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(); }