コード例 #1
0
 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();
        }
コード例 #3
0
 public HttpResponseMessage Delete(TodoList todoList)
 {
     _todoListService.Delete(todoList.Id);
     return Request.CreateResponse(HttpStatusCode.OK);
 }
コード例 #4
0
 public HttpResponseMessage Post(TodoList todoList)
 {
     _todoListService.Post(todoList);
     return Request.CreateResponse(HttpStatusCode.OK);
 }