Example #1
0
        // GET: Booking/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Booking res = _bookingFacade.FindById((int)id);

            if (res == null)
            {
                return(HttpNotFound());
            }

            return(View(CreateBookingVMFromDto(res)));
        }
        private async Task GetValues()
        {
            int id = Arguments.GetInt("id");

            if (id > 0)
            {
                booking = await _bookingFacade.FindById(id);

                restaurant = await _restaurantFacade.FindById(booking.RestaurantId);
            }
        }