コード例 #1
0
        private static void AddServiceForRental()
        {
            RentalManager rentalManager = new RentalManager(new EfRentalDal());

            Console.WriteLine("------------------- AddService(Customer customer) Test-------------------\n");
            var result = rentalManager.AddService(new Rental()
            {
                CarId      = 2,
                CustomerId = 2,
                RentDate   = DateTime.Today,
            });

            Console.WriteLine(result.Message);
        }