Esempio n. 1
0
        public ActionResult Create(Thread thread)
        {
            try
            {
                forumRepository.AddThread(thread);

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

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View(thread));
            }
        }