Exemplo n.º 1
0
        public async Task <IActionResult> Create()
        {
            List <TopicModel> topics = await topicManager.FindTopicAllAsync();

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

            return(View(topics));
        }