public ActionResult Create(NewTodoModel model)
        {
            if (ModelState.IsValid)
            {
                return RedirectToAction("Index");
            }

            return View("New", model);
        }
 public ActionResult Index()
 {
     //            Response.Cookies.Add(new HttpCookie("newuser", "kevin"){Expires = DateTime.Now.AddDays(1)});
     var todos = new List<NewTodoModel>();
     for (int i = 0; i < 10; i++)
     {
         var model = new NewTodoModel { Priority = i, Title = "Title " + i, Entry = "Entry " + i };
         todos.Add(model);
     }
     return View(todos);
 }
 public ActionResult New()
 {
     var model = new NewTodoModel();
     return View(model);
 }
 public ActionResult GetJson()
 {
     var item = new NewTodoModel { Title = "Do slides", Entry = "For the course", Priority = 1 };
     return Json(item, JsonRequestBehavior.AllowGet);
 }