public virtual ActionResult Edit(int id, Post p) { try { // TODO: Add update logic here return RedirectToAction("Index"); } catch { return View(); } }
public virtual ActionResult Create(Post p) { try { // TODO: Add insert logic here return RedirectToAction("Index"); } catch { return View(); } }