public ActionResult Create(Quote theQuote) { try { _solr.Add(theQuote); _solr.Commit(); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Edit(String id, Quote theQuote) { try { _solr.Add(theQuote); _solr.Commit(); _solr.Optimize(); return RedirectToAction("Index"); } catch { return View(); } }