Пример #1
0
        public async Task <ActionResult> ExibirTarefa(Guid Id)
        {
            if (!AlunoLogado())
            {
                return(RedirectToAction(nameof(Login)));
            }
            var modelCronograma = await _apiTarefa.BuscarAsync(Id);

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

            return(View(model));
        }