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