예제 #1
0
 public ActionResult Save(Note note)
 {
     var manager = new NoteManager();
     manager.Save(note);
     var model = manager.GetAll();
     return PartialView("List", model);
 }
예제 #2
0
 public ActionResult List()
 {
     var manager = new NoteManager();
     var model = manager.GetAll();
     return PartialView(model);
 }
예제 #3
0
 public ActionResult Edit(int id)
 {
     var manager = new NoteManager();
     var model = manager.GetById(id);
     return PartialView("NoteForm", model);
 }