Beispiel #1
0
        public void ReturnMotor(Manager manager)
        {
            Console.Clear();
            MotorBL mtbl = new MotorBL();
            bool    a    = false;

            Customers  customer   = new Customers();
            Motor      motor      = new Motor();
            ContractBL contractBL = new ContractBL();
            Contract   contract   = new Contract();

            Console.WriteLine("---------------------------------------------------");
            Console.WriteLine("--------------Tra Xe----------");
            Console.WriteLine("--------------------------------------------------");
            customer = InputCustomerReturnMotor();
            motor    = InputMotorReturnMotor();

            try
            {
                contractBL.ReturnMotor(customer, motor, contract);
                a = true;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                a = false;
            }
            if (a == true)
            {
                Console.WriteLine("TRA XE THANH CONG.");
            }
        }