Beispiel #1
0
        public ActionResult Create([ModelBinder(typeof(NewTodoListBinder))] TodoList todoListModel)
        {
            int id = _repository.CreateTodoList(User.Identity.GetUserId(), todoListModel);

            return(RedirectToAction("Index", "Todo", new { id }));
        }