public IActionResult DeleteTask(int id) { TaskRepository repo = new TaskRepository(); repo.DeleteTaskFromDatabase(id); return(RedirectToAction("Index", "TodoList")); }