public BlogTopicVM GetTopic(int id)
        {
            BlogTopic   topic = this.Context.BlogTopics.Find(id);
            BlogTopicVM vm    = Mapper.Map <BlogTopic, BlogTopicVM>(topic);

            return(vm);
        }
Beispiel #2
0
        public ActionResult Details(int id)
        {
            BlogTopicVM topicvm = this.service.GetTopic(id);

            return(this.View(topicvm));
        }