public ActionResult Get(int id)
 {
     var user = _service.GetTodoItemForUser(1, id);
     var item = user.Todos.FirstOrDefault();
     var model = new TodoViewModel
     {
         Id = item.Id,
         Description = item.Description,
         Priority = item.Priority,
         DoBy = DateTime.Now
     };
     if (Request.IsAjaxRequest())
     {
         return PartialView("TodoDetails", model);
     }
     else
     {
         return View(model);
     }
 }
        public ActionResult Index()
        {
            var data = Request.Cookies["Alice"];
            if (data == null)
            {
                var cookie = new HttpCookie("Alice", "Some Data");
                Response.Cookies.Add(cookie);
            }

            var sessionData = Session["SessionItem"];
            if (sessionData == null)
            {
                sessionData = Session["SessionItem"] = "Some data";
            }
            var user = _service.GetTodoItemsForUser(1);
            var viewModel = new UserViewModel {Name = user.Name, EMailAddress = user.EMail};
            var todoVMs = new List<TodoViewModel>();
            foreach (var todo in user.Todos)
            {
                var model = new TodoViewModel { Id = todo.Id, Description = todo.Description };
                todoVMs.Add(model);
            }

            var ut = new UserTodos {User = viewModel, Todos = todoVMs};

            return View(ut);
        }