public async Task <IActionResult> Details(string id)
        {
            var idea = await _ideaService.GetIdeaAsync(id);

            var model = IdeaInfoViewModel.MapFrom(idea);

            if (model.Pages.Any())
            {
                model.Pages.First().IsActive = true;
            }

            return(View(model));
        }
Beispiel #2
0
 public Task <IdeaDto> Get(string id)
 {
     return(_ideaService.GetIdeaAsync(id));
 }