Example #1
0
        public ActionResult ComposePost(ForumModel model)
        {
            ForumRepository repository = new ForumRepository();

            repository.AddPost(User.Identity.Name, model.title, model.content, model.courseId);

            return(RedirectToAction("PostMessage"));
        }