7.3.1 Adding a Controller; Listing 7-7 Adding an Action Method to the ProductController.cs File
parent
5cced2c5d9
commit
1ffd5ba6ad
|
@ -15,5 +15,10 @@ namespace SportsStore.WebUI.Controllers
|
|||
{
|
||||
this.repository = productRepository;
|
||||
}
|
||||
|
||||
public ViewResult List()
|
||||
{
|
||||
return View(repository.Products);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue