Example #1
0
 // GET: Home
 public async Task<ActionResult> Index()
 {
     iDunnoDB db = new iDunnoDB();
     return View(new HomeView(new HomeScreen() { PopularItems = await db.GetTopProducts(), CurrentUser = await db.GetUserById((await db.getCurrentSession()).User) }));
 }