Esempio n. 1
0
        public ActionResult EditAppointment(int id)
        {
            ViewBag.DealerId = new SelectList(_dealerManager.GetDealerDropDown(), "Id", "Name");

            string loggedInUser = (string)Session["loggedInUser"];

            ViewBag.LoggedInUser = loggedInUser;
            ViewBag.VehicleId    = new SelectList(_vehicleManager.GetUserVehicleDropDown(loggedInUser), "Id", "Model");
            ViewBag.ServiceId    = new SelectList(_serviceManager.GetServiceDropDown(), "Id", "Name");
            var appointment = _appointmentManager.GetUserAppointment(id);

            return(View(appointment));
        }