よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public async Task <IActionResult> Index() { var list = await _productService.FindAllAsync(); var categories = await _categoriesService.FindAllAsync(); var viewModel = new ProductFormViewModel { Categories = categories }; return(View(list)); }