Exemplo n.º 1
0
 // GET: Admin/AdminProducts/Create
 public async Task <IActionResult> Create()
 {
     ViewData["Categories"] = new SelectList(await _adminCategoryService.AllAsync(), "Id", "Name");
     return(View());
 }
Exemplo n.º 2
0
 /// GET: /Admin/Categories/All
 /// <summary>
 /// All categories.
 /// </summary>
 public async Task <IActionResult> All()
 => View(await _adminCategoryService.AllAsync());
Exemplo n.º 3
0
 public async Task <IActionResult> Index()
 => View(await categoties.AllAsync());