Beispiel #1
0
        public ActionResult AddTopic(PostData topic)
        {
            var id        = topic.Id;
            var new_topic = new TopicData()
            {
                Title = topic.Title
            };

            _forum.AddTopic(new_topic, id);

            return(RedirectToAction("Index", "Topic"));
        }