예제 #1
0
        static void MenuOptions_CreateEquipment()
        {
            Console.Write("Please enter name of Equipment to add:");
            EquipmentDTO equipment = new EquipmentDTO();

            equipment.Name = Console.ReadLine();

            Console.Write("Please enter manufacturer of equipment:");
            equipment.Manufacturer = Console.ReadLine();

            Console.Write("Please enter model of equipment:");
            equipment.Model = Console.ReadLine();

            equipment.ID = Guid.NewGuid().ToString();

            JMS_Commands.CreateEquipment(equipment);

            equipment = null;
            GC.Collect();
        }