常用方法
常用方法
常用方法
常用方法
// GET: Vehicles/Create public ActionResult Create() { ViewBag.OwnerId = new SelectList(db.GetOwners(), "Id", "Name"); ViewBag.TypeId = new SelectList(db.GetVehicleTypes(), "Id", "Name"); return(View()); }