示例#1
0
        public async Task <IActionResult> Create()
        {
            List <TopicModel> topics = await topicManager.FindTopicAllAsync();

            ViewBag.Topics = topics;
            return(View());
        }
示例#2
0
        public async Task <IActionResult> Index()
        {
            List <TopicModel> topics = await topicManager.FindTopicAllAsync();

            return(View(topics));
        }