public ActionResult Create(Thread thread) { try { forumRepository.AddThread(thread); return(RedirectToAction("Index")); } catch { return(View(thread)); } }
public ActionResult Create(Thread thread) { try { // TODO: Add insert logic here forumRepository.AddThread(thread); return(RedirectToAction("Index")); } catch { return(View(thread)); } }