コード例 #1
0
        public ActionResult ConfirmReservation()
        {
            var route = TempData["TempRoute"] as RouteView;
            if (route == null)
            {
                RedirectToAction("Index");
            }

            var routeService = new RouteCtrServiceClient();
            var customerService = new CustomerCtrServiceClient();
            ViewBag.MapUrl = routeService.GetMapRouteUrl(route.Path);

            ViewBag.CustomerID = new SelectList(customerService.GetAllCustomers(), "ID", "Name");

            TempData["TempRoute"] = route;
            return View("ConfirmReservationGet", route);
        }