예제 #1
0
 // GET: Posts/Create
 public IActionResult Create()
 {
     ViewData["Account_id"] = new SelectList(_context.Set <Account>(), "Id", "Username");
     ViewData["Camera_id"]  = new SelectList(_context.Set <Camera>(), "Id", "Model");
     ViewData["Lens_id"]    = new SelectList(_context.Set <Lens>(), "Id", "Model");
     return(View());
 }
예제 #2
0
 // GET: Cameras/Create
 public IActionResult Create()
 {
     ViewData["Mounting_id"] = new SelectList(_context.Set <Mounting>(), "Id", "Name");
     return(View());
 }