public ActionResult Edit(int id) { FleetViewModel model = FleetDataAccess.GetById(id); ViewBag.KaroseriList = new SelectList(KaroseriDataAccess.GetAll(), "KaroseriId", "Description"); ViewBag.MerkBusList = new SelectList(MerkBusDataAccess.GetAll(), "MerkId", "Description"); ViewBag.TypeBusList = new SelectList(TypeBusDataAccess.GetByMerkBus(model.MerkId), "TypeId", "Description"); return(View(model)); }
public ActionResult Delete(int id) { return(View(FleetDataAccess.GetById(id))); }