コード例 #1
0
        public IActionResult DeleteTask(int id)
        {
            TaskRepository repo = new TaskRepository();

            repo.DeleteTaskFromDatabase(id);
            return(RedirectToAction("Index", "TodoList"));
        }