Created
January 22, 2018 16:55
-
-
Save StephanyBatista/6a0e8a8d00279edf76b5838f3eb8a77e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ProductController : Controller | |
{ | |
private readonly ProductRepository _productRepository; | |
public ProductController(ProductRepository productRepository) | |
{ | |
_productRepository = productRepository; | |
} | |
public IActionResult Index() | |
{ | |
return View(_productRepository.GetAll()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment