Beispiel #1
0
        public ActionResult Edit(string plate)
        {
            Motorbike moTor = MotorBusiness.Select(plate);

            ViewBag.MotorType = new SelectList(MotorTypeBusiness.ListMotorTypes(), "Id", "Description", moTor.MotorType);
            SelectList sList = new SelectList(MotorTypeBusiness.ListMotorTypes(), "Id", "Description", moTor.MotorType);

            ViewBag.MotorTypes = sList;
            return(PartialView("EditForm", moTor));
        }
Beispiel #2
0
        public ActionResult Details(string plate)
        {
            Motorbike moTor = MotorBusiness.Select(plate);

            return(PartialView("DetailForm", moTor));
        }