public async Task <IActionResult> CreateNewResearch() { var topics = await topicService.AllTopics(); var researchViewModel = new ResearchViewModel { Topics = topics.Select(selectItem => new SelectListItem { Value = selectItem.Id.ToString(), Text = selectItem.TopicName }).ToList() }; return(View(researchViewModel)); }
public async Task <IActionResult> Panel() { var topics = await topicService.AllTopics(); return(View(topics)); }