static void MenuOptions_CreateLog() { PrivateLogDTO log = new PrivateLogDTO(); Console.Write("Please enter message to add:"); log.Message = Console.ReadLine(); log.UserID = FirebaseHelper.GetUserID(); log.ID = Guid.NewGuid().ToString(); JMS_Commands.CreateLog(log); log = null; GC.Collect(); }
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(); }