7.3.1 Adding a Controller; e.g. 7.7: Adding an Action Method
This commit is contained in:
parent
f33d1cd675
commit
6217886a88
@ -15,5 +15,10 @@ namespace SportsStore.WebUI.Controllers
|
|||||||
{
|
{
|
||||||
repository = productRepository;
|
repository = productRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ViewResult List()
|
||||||
|
{
|
||||||
|
return View(repository.Products);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user