示例#1
0
 public ActionResult Index()
 {
     return(View(new IndexViewModel
     {
         Tasks = tasksRepo.GetIncompletedTasks(),
         CurrentUser = usersRepo.GetByEmail(User.Identity.Name)
     }));
 }