예제 #1
0
        public IActionResult Details(string id, int id2)
        {
            ModelRepo modRepo = new ModelRepo(db);
            var       model   = modRepo.Get(id, id2);

            return(View(model));
        }
예제 #2
0
        // 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));
        }