コード例 #1
0
        public ActionResult Index()
        {
            TaskRepository repo = new TaskRepository();

            TaskList list = repo.GetTasks();
            return View(list);
        }
コード例 #2
0
        public ActionResult ToggleTask(Int32 taskId)
        {
            TaskRepository repo = new TaskRepository();

            TaskResponse response = repo.ToggleTask(taskId);

            return Json(response);
        }