public Reservation samplebooking() { var booking = new Reservation(); booking.Id = 1; booking.Start = new DateTime(2015, 08, 27); booking.Stop = new DateTime(2015, 08, 30); booking.Customer = GetSampleCustomer(1); booking.ReservedRooms = GetSampleListOfRooms(); return booking; }
public Reservation samplebooking2() { var booking = new Reservation(); booking.Id = 2; booking.Start = new DateTime(2015, 08, 31); booking.Stop = new DateTime(2015, 09, 03); booking.Customer = GetSampleCustomer(2); booking.ReservedRooms = new List<Room>(); booking.ReservedRooms.Add(GetSampleRoom(2)); return booking; }
public ActionResult Reservation(int Id) { var Model = new Reservation(); Model = sampleDataRepository.samplebooking(); return View(Model); }