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