public ActionResult BookViewing(BookingViewModel booking)
        {
            var handler = new BookingCommandHandler(_context);

            handler.Save(booking, User.Identity.GetUserId());

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public ActionResult Cancelled(BookingCommandBase command)
        {
            var handler = new BookingCommandHandler(_context);

            handler.Cancelled(command);

            return(RedirectToAction("BookingsOnProperty", new { id = command.PropertyId }));
        }