Exemplo n.º 1
0
        public async Task <IActionResult> Details(int idCurso)
        {
            try
            {
                var profId = _usrService.Get_ProfesorId(User.Claims);

                var model = await _ctrlService.Get_Curso(profId, idCurso);

                ViewData["select-desafios"] =
                    await _ctrlService
                    .GetAll_DesafiosSelectList(profId, idCurso);

                this.GetAlerts();
                return(View(model));
            }
            catch (ApplicationServicesException e)
            {
                Console.WriteLine(e);
                return(NotFound());
            }
        }