public void TestFindBooking()
        {
            Booking b1 = new Booking(c1, "10.30", new DateTime(2019, 12, 03, 00, 00, 00), packages2, 2);

            brT.AddBookingToList(b1);
            Booking b2 = brT.GetBooking(2);

            Assert.AreEqual(b2.Id, b1.Id);
        }
 public ActionResult DeleteConfirmed(int bookingId)
 {
     if (BookingRepo.DeleteBooking(bookingId))
     {
         return(RedirectToAction("Index"));
     }
     return(View(BookingRepo.GetBooking(bookingId)));
 }
        public ActionResult Details(int bookingId)
        {
            var bookingVM = new BookingVM()
            {
                Booking = BookingRepo.GetBooking(bookingId)
            };

            bookingVM.CalculateDiscounts(AnimalRepo.GetAnimalTypes(), new Random().Next(0, 6));
            bookingVM.TotalPrice = CalculatePrice(bookingVM);

            return(View(bookingVM));
        }
 public ActionResult Delete(int bookingId)
 {
     return(View(BookingRepo.GetBooking(bookingId)));
 }