public ActionResult Edit(Entry entry) { var real_entry = entryRepository.Find(entry.EntryId); real_entry.Body = entry.Body; real_entry.Title = entry.Title; entryRepository.InsertOrUpdate(ref real_entry, real_entry.EntryId); context.Commit(); return RedirectToAction("Index"); }
public ActionResult Create(Entry entry) { entryRepository.InsertOrUpdate(ref entry, entry.EntryId); context.Commit(); return RedirectToAction("Index"); }