Created
July 12, 2016 06:38
-
-
Save guntidheerajkumar/bdb33654318229cd8dbc0343293ed47c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 HomeController : Controller | |
{ | |
private PersonDBContext context; | |
public HomeController(PersonDBContext context) | |
{ | |
this.context = context; | |
} | |
public IActionResult Index() | |
{ | |
var data = context.Person.ToList(); | |
return View(data); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment