Example #1
0
        public async Task <ActionResult> ExibirCronograma(Guid Id)
        {
            if (!AlunoLogado())
            {
                return(RedirectToAction(nameof(Login)));
            }
            var modelCronograma = await _apiCronograma.BuscarAsync(Id);

            ViewData["CaminhoImagem"] = _configuration["UrlApi:WebApiBaseUrl"] + "v1/Cronograma/PegarPdf/";
            return(View(modelCronograma));
        }
Example #2
0
        public async Task <IActionResult> Index()
        {
            var model = await _api.BuscarAsync();

            return(View(model));
        }