Esempio n. 1
0
        private static void AllRentDetailDto(RentalManager rentalManager)
        {
            var result = rentalManager.GetAllRent();

            if (result.Success == true)
            {
                Console.WriteLine("\n---Rent A Car--- \t\t Tüm Kiralamalar\n");
                Console.WriteLine("Id\tBrand\t\tCompany\t\tName\t\tSurName\t\tPrice\t\tRentDate\t\tReturnDate");
                Console.WriteLine("--\t-----\t\t-------\t\t----\t\t-------\t\t-----\t\t--------\t\t----------");
                foreach (RentalDetailDto rent in result.Data)
                {
                    Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t\t{6}\t{7}",
                                      rent.Id,
                                      rent.BrandName,
                                      rent.CompanyName,
                                      rent.FirstName,
                                      rent.LastName,
                                      rent.DailyPrice,
                                      rent.RentDate,
                                      rent.ReturnDate);
                }
            }
            else
            {
                Console.WriteLine(result.Message);
            }
        }