public ActionResult Block(string SystemName) { var topic = _topicService.GetBySystemName(SystemName); if (topic == null || !topic.IsBlock) return null; var model = new TopicModel(); Mapper.CreateMap<Topic, TopicModel>(); Mapper.Map(topic, model); return PartialView(model); }
public ActionResult Details(string SystemName) { var topic = _topicService.GetBySystemName(SystemName); if (topic == null) return HttpNotFound(); var model=new TopicModel(); Mapper.CreateMap<Topic, TopicModel>(); Mapper.Map(topic, model); return View(model); }