public async Task <IActionResult> Index(bool?completa)
        {
            var tarefas = await _tarefaItemService.GetItensAsync(completa);

            var model = new TarefaViewModel()
            {
                tarefasItens = tarefas
            };

            return(View(model));
        }
示例#2
0
        //Lista de Tarefas
        public async Task <IActionResult> Index()
        {
            var tarefas = _tarefaService.GetItensAsync();

            return(View(await tarefas));
        }