public ActionResult CreateToDoItem() { var title = (Request.Form["title"]); var description = (Request.Form["description"]); var dueDate = (Request.Form["due-date"]); var importance = (Request.Form["importance"]); ToDoItems toDoListItem = new ToDoItems(title, description, dueDate, importance); toDoListItem.Save(); List <ToDoItems> allItems = ToDoItems.GetAll(); return(View("Index", allItems)); }