コード例 #1
0
 // GET: Category3/Create
 public async Task <IActionResult> Create()
 {
     ViewData["Category2"] = new SelectList(await _Category2Service.GetAllAsync(), "ID", "Description");
     return(View());
 }
コード例 #2
0
 // GET: Category2
 public async Task <IActionResult> Index() => View(await _Category2Service.GetAllAsync());