示例#1
0
        static void MenuOptions_GetLog()
        {
            Console.Write("Please enter ID of Log:");
            string     id  = Console.ReadLine();
            PrivateLog dto = JMS_Commands.GetLog(id);

            if (dto != null)
            {
                PrintLog(dto);
            }
            else
            {
                Console.WriteLine("No Results.");
            }
        }
示例#2
0
        static void MenuOptions_UpdateLog()
        {
            Console.Write("Please enter the id of the log item you would like to update:");
            PrivateLog log = JMS_Commands.GetLog(Console.ReadLine());

            Console.Write("Log to update:");
            PrintLog(log);

            Console.Write("Please enter updated log message:");
            log.Message = Console.ReadLine();

            JMS_Commands.CreateLog(new PrivateLogDTO(log));

            log = null;
            GC.Collect();
        }