Skip to content

Instantly share code, notes, and snippets.

@oclockvn
Created April 10, 2015 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oclockvn/8e3becd7cf63bf453834 to your computer and use it in GitHub Desktop.
Save oclockvn/8e3becd7cf63bf453834 to your computer and use it in GitHub Desktop.
public class EStoreController : Controller
{
private ApplicationDbContext _db = new ApplicationDbContext();
public ActionResult Index()
{
var items = _db.Items.ToList();
return View(items);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment