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