public IActionResult Details(string id, int id2) { ModelRepo modRepo = new ModelRepo(db); var model = modRepo.Get(id, id2); return(View(model)); }
// GET: Model/Edit/5 public async Task <IActionResult> Edit(string id, int id2) { ViewData["ManufacturerMake"] = new SelectList(db.Manufacturer, "Make", "Make"); ModelRepo modRepo = new ModelRepo(db); Model model = modRepo.Get(id, id2); return(View(model)); }