Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public Task <IdeaDto> Get(string id)
 {
     return(_ideaService.GetIdeaAsync(id));
 }