Пример #1
0
        public ActionResult AddDiscussion(Discussion discussion)
        {
            try
            {
                discussion.Created = DateTime.Now;

                _discussionService.AddDiscussion(discussion);


                return(RedirectToAction("GetAllDiscussions", "Discussion", discussion));
            }
            catch
            {
                return(View());
            }
        }
Пример #2
0
 public void AddDiscussion(Discussion discussion)
 {
     _dao.AddDiscussion(discussion);
 }