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)); }
public ActionResult Details(string plate) { Motorbike moTor = MotorBusiness.Select(plate); return(PartialView("DetailForm", moTor)); }