// GET: VehicleModel/Edit/5 public ActionResult Edit(Guid?id) { var _service2 = new VehicleMakeService(); var makes = _service2.GetAll(); ViewBag.List = new SelectList(makes, "Id", "Name"); return(View(_serviceModel.Get(id))); }
// GET: VehicleModel/Create public ActionResult Create() { ViewBag.List = new SelectList(_serviceMake.GetAll(), "Id", "Name"); return(View()); }