public ActionResult Delete(int id, IFormCollection collection) { try { AddTask_To_ToDoList toDoTask = _toDoListRepository.DeleteListItemByIdItem(id); //IEnumerable<AddTask_To_ToDoList> model = _toDoListRepository.GetListByAssignedUserId(toDoTask.IDExecutor); return(RedirectToAction("ShowAllListsToDo", new { id = toDoTask.IDExecutor })); } catch { return(View()); } }