Beispiel #1
0
        public IActionResult Create(string Title, bool IsUrgent)
        {
            ToDo thing = new ToDo(Title, IsUrgent);

            MyToDos.Create(thing);
            return(RedirectToAction("List"));
        }
Beispiel #2
0
 public IActionResult Create(ToDo todo)
 {
     MyToDos.Create(todo);
     return(RedirectToAction("List"));
 }