示例#1
0
        public ActionResult Topic()
        {
            TopicFactory       TF        = new TopicFactory();
            List <TopicEntity> TopicList = TF.GetTopic().ToList();

            return(View(TopicList));
        }
示例#2
0
        public void GetTopic()
        {
            TopicFactory       UF        = new TopicFactory();
            List <TopicEntity> TopicList = UF.GetTopic().ToList();

            ViewBag.Topics = new SelectList(TopicList, "TopicId", "TopicName");
        }