Created
January 22, 2018 16:50
-
-
Save StephanyBatista/53145b1afa3512a9a5fa6a66696127fd 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 | |
{ | |
public IActionResult Index() | |
{ | |
var applicationDbContext = new ApplicationDbContext(null); | |
var repository = new ProductRepository(applicationDbContext); | |
return View(repository.GetAll()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment