public ActionResult ComposePost(ForumModel model) { ForumRepository repository = new ForumRepository(); repository.AddPost(User.Identity.Name, model.title, model.content, model.courseId); return(RedirectToAction("PostMessage")); }