コード例 #1
0
 protected void BindRepeater()
 {
     var repo = new TaskRepository();
     taskList.DataSource = repo.FindAll();
     taskList.DataBind();
 }
コード例 #2
0
 public ActionResult Index()
 {
     var repo = new TaskRepository();
     ViewData["Tasks"] = repo.FindAll();
     return View();
 }