public ActionResult Edit(Contact contact) { try { RavenSession.Store(contact); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Create(Contact contact) { try { RavenSession.Store(contact); //TODO once inserted, how do you select it? (GUID obvious choice) return RedirectToAction("Index"); } catch { return View(); } }