Esempio n. 1
0
        public ActionResult NewPost(ForumPostModel post, ForumDAL dal)
        {
            dal.AddNewPost(post);

            return(RedirectToAction("Forum"));
        }
Esempio n. 2
0
        // GET: Forum

        public ActionResult Forum(ForumDAL dal)
        {
            var posts = dal.GetForumPosts();

            return(View("Forum", posts));
        }