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")); }
public void Setup() { base.SetUp(); _handler = new BookingViewCommandHandler(_context); }