コード例 #1
0
 public async Task <IActionResult> Index()
 {
     ViewBag.Title = "Welcome to the store";
     return(View((await pcrepository.Product_CategoriesAsync(), await prepository.ProductsAsync())));
 }
コード例 #2
0
 //Product_Category action methods
 public async Task <IActionResult> Product_Category()
 {
     ViewBag.Title          = "Welcome admin";
     ViewBag.DashboardCateg = "Product Category Table";
     return(View(await pcrepository.Product_CategoriesAsync()));
 }