public void Post(TodoList todoList)
 {
     using (var session = _documentStore.OpenSession())
     {
         session.Store(todoList);
         session.SaveChanges();
     }
 }
        public ActionResult Edit(TodoList todoList)
        {
            if (!ModelState.IsValid){
                return PartialView("TodoList", todoList);
            }

            _todoListService.Post(todoList);
            return new EmptyResult();
        }
 public HttpResponseMessage Delete(TodoList todoList)
 {
     _todoListService.Delete(todoList.Id);
     return Request.CreateResponse(HttpStatusCode.OK);
 }
 public HttpResponseMessage Post(TodoList todoList)
 {
     _todoListService.Post(todoList);
     return Request.CreateResponse(HttpStatusCode.OK);
 }