public ActionResult BookingView(BookingViewCommand command)
        {
            var handler    = new BookingViewCommandHandler(_context);
            var result     = handler.Handle(command);
            var newBooking = result.Entity as Booking;

            if (result.Status)
            {
                TempData["BookingStatus"] = "Success";
            }
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public void Setup()
 {
     base.SetUp();
     _handler = new BookingViewCommandHandler(_context);
 }